Skip to content

Moodle vulnerable to stored Cross-site Scripting

Moderate severity GitHub Reviewed Published May 16, 2023 to the GitHub Advisory Database • Updated Nov 11, 2023

Package

composer moodle/moodle (Composer)

Affected versions

<= 3.10.1

Patched versions

None

Description

Moodle 3.10.1 is vulnerable to persistent/stored cross-site scripting (XSS) due to the improper input sanitization on the "Additional HTML Section" via "Header and Footer" parameter in /admin/settings.php. This vulnerability may lead an attacker to steal admin and all user account cookies by storing the malicious XSS payload in Header and Footer.

References

Published by the National Vulnerability Database May 16, 2023
Published to the GitHub Advisory Database May 16, 2023
Reviewed May 17, 2023
Last updated Nov 11, 2023

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-2021-27131

GHSA ID

GHSA-w2pm-fr62-jgv4

Source code

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