Miggo Logo

CVE-2015-3275:
Moodle multiple cross-site scripting (XSS) vulnerabilities

6.1

CVSS Score

Basic Information

EPSS Score
-
Published
5/13/2022
Updated
1/26/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
moodle/moodlecomposer>= 2.7.0, < 2.7.92.7.9
moodle/moodlecomposer>= 2.8.0, < 2.8.72.8.7
moodle/moodlecomposer>= 2.9.0, < 2.9.12.9.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper validation of the 'currentorg' parameter in mod/scorm/player.php and mod/scorm/prereqs.php. The commit patches show that these files previously used PARAM_RAW for 'currentorg' without checking if the value was a valid organization identifier in the database. This allowed attackers to inject arbitrary HTML/JavaScript via the parameter. The added validation in the patch (checking scorm_scoes) confirms the root cause. While the code resides in the global scope of the scripts (not specific named functions), the parameter handling logic in these files is the vulnerable entry point.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

Multipl* *ross-sit* s*riptin* (XSS) vuln*r**iliti*s in t** S*ORM mo*ul* in Moo*l* t*rou** *.*.**, *.*.x ***or* *.*.*, *.*.x ***or* *.*.*, *n* *.*.x ***or* *.*.* *llow r*mot* *tt**k*rs to inj**t *r*itr*ry w** s*ript or *TML vi* * *r**t** or**niz*tion

Reasoning

T** vuln*r**ility st*ms *rom improp*r v*li**tion o* t** '*urr*ntor*' p*r*m*t*r in mo*/s*orm/pl*y*r.p*p *n* mo*/s*orm/pr*r*qs.p*p. T** *ommit p*t***s s*ow t**t t**s* *il*s pr*viously us** P*R*M_R*W *or '*urr*ntor*' wit*out ****kin* i* t** v*lu* w*s *