Document Title: =============== Perfex v2.4.4 CRM - (Print) Persistent Web Vulnerability References (Source): ==================== https://www.vulnerability-lab.com/get_content.php?id=2231 Release Date: ============= 2020-06-24 Vulnerability Laboratory ID (VL-ID): ==================================== 2231 Common Vulnerability Scoring System: ==================================== 4.7 Vulnerability Class: ==================== Cross Site Scripting - Persistent Current Estimated Price: ======================== 1.000€ - 2.000€ Product & Service Introduction: =============================== Manage Customers, Projects, and Create Invoices in the Cloud. Customer Relationship Management software that is a great fit for almost any small business, freelancer or many other uses. Manage and invoice projects with the powerful project management feature. Track expenses and time spent on tasks and bill your customers. Ability to assign multiple staff members on task and track time logged by assigned project member. (PHP Version: 7.3.16 & MySQL Version: 5.6.40-84.0) (Copy of the Homepage: https://www.perfexcrm.com/ ) Abstract Advisory Information: ============================== The vulnerability laboratory core research team discovered a persistent xss web vulnerability in the Perfex v2.4.4 web-application. Affected Product(s): ==================== Perfex Product: Perfex v2.4.4 - CRM (Web-Application) Vulnerability Disclosure Timeline: ================================== 2020-06-24: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Exploitation Technique: ======================= Remote Severity Level: =============== Medium Authentication Type: ==================== Restricted Authentication (Guest Privileges) User Interaction: ================= Low User Interaction Disclosure Type: ================ Full Disclosure Technical Details & Description: ================================ A persistent input validation web vulnerability has been discovered in the official Perfex v2.4.4 crm web-application. The vulnerability allows remote attackers to inject own malicious script codes with persistent attack vector to compromise browser to web-application requests from the application-side. The persistent vulnerability is located in the `company` name parameter of the `./clients/client` (Customer) module. Remote attackers with low privileges are able to inject own malicious persistent script code as company name to compromise the internal print function of the backend. The attacker inject his code and in case the admin or other privileged user account try to export via print function the code simple executes wihtin a new tab context. The request method to inject is POST and the attack vector is located on the application-side. Successful exploitation of the vulnerabilities results in session hijacking, persistent phishing attacks, persistent external redirects to malicious source and persistent manipulation of affected application modules. Request Method(s): [+] POST Vulnerable Module(s): [+] /admin/clients/client (Customers) Vulnerable Parameter(s): [+] company Affected Module(s): [+] Export (Print) Proof of Concept (PoC): ======================= The persistent input validation web vulnerability can be exploited by remote attackers with low privileged user account and with low user interaction. For security demonstration or to reproduce the persistent cross site web vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Open the registration inject payload as company name or 2. Use an existing account to rename 3. In the backend admins can export and print (execution point) 4. Wait until the function is used to compromise the session 5. Login and successful reproduce of the vulnerability! PoC: Payload > --- PoC Session Logs [POST] --- (Injection Point - Register or Add/Edit) https://localhost:8000/perfexcrm/admin/clients/client Host: localhost:8000 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Content-Type: application/x-www-form-urlencoded Content-Length: 319 Origin: https://localhost:8000 Connection: keep-alive Referer: https://localhost:8000/perfexcrm/admin/clients/client company=>&vat=&phonenumber=&website=&default_currency=& default_language=&address=test&city=&state=&zip=&country=&billing_street=& billing_city=&billing_state=&billing_zip=&billing_country=&shipping_street=&shipping_city=&shipping_state=&shipping_zip=&shipping_country= - POST: HTTP/2.0 302 Found server: nginx content-type: text/html; charset=utf-8 location: https://localhost:8000/perfexcrm/admin/clients/client/13 - --- PoC Session Logs [GET] --- (Execution Point - Print Customer Data via Export) https://localhost:8000/perfexcrm/admin/clients/evil.source Host: localhost:8000 Accept-Encoding: gzip, deflate, br Connection: keep-alive - GET: HTTP/1.0 200 OK server: nginx content-length: 514 vary: Accept-Encoding content-encoding: gzip Reference(s): https://localhost:8000/perfexcrm/ https://localhost:8000/perfexcrm/admin/ https://localhost:8000/perfexcrm/admin/clients/ https://localhost:8000/perfexcrm/admin/clients/client/ Credits & Authors: ================== Vulnerability-Lab - https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab Benjamin Kunz Mejri - https://www.vulnerability-lab.com/show.php?user=Benjamin%20K.M. Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data. Domains: www.vulnerability-lab.com www.vuln-lab.com www.vulnerability-db.com Services: magazine.vulnerability-lab.com paste.vulnerability-db.com infosec.vulnerability-db.com Social: twitter.com/vuln_lab facebook.com/VulnerabilityLab youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php vulnerability-lab.com/rss/rss_upcoming.php vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php vulnerability-lab.com/register.php vulnerability-lab.com/list-of-bug-bounty-programs.php Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit our material contact (admin@ or research@) to get a ask permission. Copyright © 2020 | Vulnerability Laboratory - [Evolution Security GmbH]™