Skip to content

Moodle Persistent Cross-site Scripting (XSS)

Moderate severity GitHub Reviewed Published May 24, 2022 to the GitHub Advisory Database • Updated May 3, 2024

Package

composer moodle/moodle (Composer)

Affected versions

>= 3.7, <= 3.7.2

Patched versions

None

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."

References

Published by the National Vulnerability Database Feb 11, 2020
Published to the GitHub Advisory Database May 24, 2022
Reviewed Apr 23, 2024
Last updated May 3, 2024

Severity

Moderate
5.4
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2019-18210

GHSA ID

GHSA-q6vw-27c6-jv9c

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.