Skip to content
OpenAdvisories
Medium · 4.3 Public exploit CVE-2019-3810 EUVD-2022-5591GHSA-wm4w-8vc6-2j4h

Moodle XSS Vulnerability

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

Description

A flaw was found in moodle versions 3.6 to 3.6.1, 3.5 to 3.5.3, 3.4 to 3.4.6, 3.1 to 3.1.15 and earlier unsupported versions. The /userpix/ page did not escape users' full names, which are included as text when hovering over profile images. Note this page is not linked to by default and its access is restricted.

Affected products

VendorProductAffectedFixed
[UNKNOWN] moodle 3.6.2, 3.5.4, 3.4.7, 3.1.16 —

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.

Exploit-DB 1

GitHub 1 repository

  • farisv/Moodle-CVE-2019-3810 ★ 17 · Apr 29, 2021

    Moodle (< 3.6.2, < 3.5.4, < 3.4.7, < 3.1.16) XSS PoC for Privilege Escalation (Student to Admin)

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.1 3.6.1 GHSA-wm4w-8vc6-2j4h
Packagist moodle/moodle >= 3.5.0, < 3.5.3 3.5.3 GHSA-wm4w-8vc6-2j4h
Packagist moodle/moodle >= 3.4.0, < 3.4.6 3.4.6 GHSA-wm4w-8vc6-2j4h
Packagist moodle/moodle >= 3.1.0, < 3.1.15 3.1.15 GHSA-wm4w-8vc6-2j4h

References