CVE-2019-18210 Moodle Persistent Cross-site Scripting (XSS)
Authenticated teachers can inject persistent JavaScript into other users' sessions via the course editor, though the vendor disputes this as a vulnerability.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2019-18210?
CVE-2019-18210 is a medium-severity cross-site scripting vulnerability in Moodle Moodle, published on 11 Feb 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Persistent XSS in /course/modedit.php of Moodle through 3.7.2 allows authenticated users (Teacher and above) to inject JavaScript into the session of another user (e.g., enrolled student or site administrator) via the introeditor[text] parameter. NOTE: the discoverer and vendor disagree on whether Moodle customers have a reasonable expectation that anyone authenticated as a Teacher can be trusted with the ability to add arbitrary JavaScript (this ability is not documented on Moodle's Teacher_role page). Because the vendor has this expectation, they have stated "this report has been closed as a false positive, and not a bug."
Weakness: CWE-79
Which versions are affected by CVE-2019-18210?
2 open source packages ship an affected version, including moodle/moodle. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
moodle/moodle Packagist | From 3.7 to 3.7.2 | None |
moodle/moodle Packagist | From 3.7 to 3.7.2 | None |
Products include Moodle Moodle.
How do I fix CVE-2019-18210?
No fix has been published for CVE-2019-18210 yet. Limit exposure of the affected software until one is available.
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-2019-18210 being exploited?
There is no known exploitation of CVE-2019-18210 in the wild and no public exploit code.
Other vulnerabilities in Moodle Moodle
- CVE-2006-4935 File upload in n/a
- CVE-2006-4936 Moodle does not properly validate module instance id
- CVE-2004-2233 Unknown "front page vulnerability with Moodle servers" for Moodle before 1.3.2 has unknown impact and attack vectors.
- CVE-2004-2235 Cross-site scripting in n/a
- CVE-2004-2236 Other in n/a
Sources
Also known as GHSA-q6vw-27c6-jv9c, UBUNTU-CVE-2019-18210.