CVE-2017-17971 Dolibarr ERP and CRM contain XSS Vulnerability
Insufficient input filtering in Dolibarr allows attackers to inject malicious scripts via onclick or onscroll attributes, leading to cross-site scripting.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-17971?
CVE-2017-17971 is a medium-severity cross-site scripting vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 29 Dec 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The test_sql_and_script_inject function in htdocs/main.inc.php in Dolibarr ERP/CRM 6.0.4 blocks some event attributes but neither onclick nor onscroll, which allows XSS.
Weakness: CWE-79
Which versions are affected by CVE-2017-17971?
2 open source packages ship an affected version, including dolibarr/dolibarr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
dolibarr/dolibarr Packagist | All versions | 6.0.5 |
dolibarr/dolibarr Packagist | All versions | 6.0.5 |
Products include Dolibarr Dolibarr Erp\/Crm.
How do I fix CVE-2017-17971?
Upgrade dolibarr/dolibarr to 6.0.5 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2017-17971 being exploited?
There is no known exploitation of CVE-2017-17971 in the wild and no public exploit code.
Other vulnerabilities in Dolibarr Dolibarr Erp\/Crm
Sources
Also known as GHSA-qjq9-wx5j-jrg6, UBUNTU-CVE-2017-17971.