Skip to content
OpenAdvisories
Medium · 5.4 Public exploit CVE-2019-3847 EUVD-2022-5022GHSA-qrcj-6fjw-3h9h

Moodle XSS Vulnerability

Published Mar 27, 2019 · Updated Aug 4, 2024 · Assigned by redhat

Description

A vulnerability was found in moodle before versions 3.6.3, 3.5.5, 3.4.8 and 3.1.17. Users with the "login as other users" capability (such as administrators/managers) can access other users' Dashboards, but the JavaScript those other users may have added to their Dashboard was not being escaped when being viewed by the user logging in on their behalf.

Affected products

VendorProductAffectedFixed
[UNKNOWN] Moodle 3.6 to 3.6.2, 3.5 to 3.5.4, 3.4 to 3.4.7, 3.1 to 3.1.16 and earlier unsupported versions —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle >= 3.6.0, < 3.6.3 3.6.3 GHSA-qrcj-6fjw-3h9h
Packagist moodle/moodle >= 3.5.0, < 3.5.5 3.5.5 GHSA-qrcj-6fjw-3h9h
Packagist moodle/moodle >= 3.2.0, < 3.4.8 3.4.8 GHSA-qrcj-6fjw-3h9h
Packagist moodle/moodle < 3.1.17 3.1.17 GHSA-qrcj-6fjw-3h9h

References