GHSL-2021-103: Cross-Site Scripting (XSS) in Erxes - CVE-2021-32853
The widget template inserted a request parameter into a script tag without escaping, allowing an attacker to break out and execute arbitrary JavaScript. An attacker could run code in a victim's browser if the victim followed a malicious link.
Originally disclosed on GitHub Security Lab
Cross-Site scripting in https://github.com/erxes/erxes.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary JavaScript in the victim's browser, but the victim must follow a malicious link or be redirected from a malicious site.
What the attacker needed
Victim clicks a link or is redirected
How it was found
- Craft a URL with a malicious topicId parameter that breaks out of the script context.
- Send the link to a victim or redirect them from a malicious site.
- The victim's browser executes the injected JavaScript.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
The web page took a value from the URL and put it directly into a script without cleaning it. This let an attacker add their own JavaScript, which would run when someone opened a crafted link. This is called cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.