CVE-2021-25955CWE-79

Stored XSS in “Dolibarr” leads to privilege escalation

Critical · published August 15, 2021

CVSS v3.1
9.0
EPSS
1%
Percentile
59.1
In the wild
Unconfirmed
What it is

🚨 A sneaky stored XSS vulnerability in Dolibarr's WYSIWYG Editor allows low-privileged users to slip malicious scripts into private notes! 🔥 Think of it like a cafe where patrons can leave personal messages on napkins. If a lowly customer scribbles a nasty note that somehow gets read by the cafe's manager, chaos could ensue! If a victim opens their private notes, they could unwittingly trigger the script, which might snatch their session ID and pave the way for complete account takeover. Imagine a privileged admin being duped into revealing their credentials—absolutely devastating for your organization's security!

Put simply

Think of it like a cafe where patrons can leave personal messages on napkins. If a lowly customer scribbles a nasty note that somehow gets read by the cafe's manager, chaos could ensue! This stored XSS vulnerability allows malicious scripts to be injected into the 'Private Note' field, executing in a user's browser when accessing the affected page. Low-privileged users can exploit the improper access control to update private notes, leading to potential privilege escalation.

What to do

If a victim opens their private notes, they could unwittingly trigger the script, which might snatch their session ID and pave the way for complete account takeover. Imagine a privileged admin being duped into revealing their credentials—absolutely devastating for your organization's security! Upgrade Dolibarr ERP CRM to the latest version (v13.0.3 or higher) immediately to patch this vulnerability. Review your access control settings, particularly for user roles, and consider implementing content security policies to mitigate risks. Audit private notes for any suspicious content and ensure proper sanitation of user inputs. You've got this! Patch up the system and you'll keep those scripts at bay! 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00893 · 59.1th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2021-08-15T20:35Z
EPSS history
Timeline
  • 15 AUG 20:35Z
    Stored XSS in “Dolibarr” leads to privilege escalation
    cvelistv5