CVE-2010-2230: Moodle/moodle Cross-Site Scripting Vulnerability
MODERATECVE-2010-2230 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Moodle/moodle libraries in the Packagist ecosystem. The issue involves moodle cross-site scripting vulnerability in the kses text cleaning filter. Remediation is available by upgrading affected packages to version 1.8.13, 1.9.9.
CVE-2010-2230 at a Glance
How to Fix CVE-2010-2230
To remediate this vulnerability, upgrade all affected Moodle/moodle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade moodle/moodle to 1.8.13
Upgrade moodle/moodle to 1.9.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for moodle/moodle
How to Check if You Are Affected
To determine whether your application is affected by CVE-2010-2230, inspect your project dependencies for Moodle/moodle:
inspect dependencies for moodle/moodle
Analyze the terminal output to locate any version of Moodle/moodle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.13), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Moodle/moodle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2010-2230 Affected Moodle/moodle Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moodle/moodle
|
Packagist |
< 1.8.13
|
1.8.13
|
|
moodle/moodle
|
Packagist |
≥ 1.9.0
< 1.9.9
|
1.9.9
|
References
Frequently Asked Questions
What is CVE-2010-2230?
Which Moodle/moodle versions are affected?
What version fixes CVE-2010-2230?
Is moodle/moodle affected?
What CWE is associated with CVE-2010-2230?
How can I check Packagist dependencies for CVE-2010-2230?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3gm8-32vv-q8mp",
"modified" : "2024-02-07T22:53:57Z",
"published" : "2022-05-13T01:13:04Z",
"aliases" : [ "CVE-2010-2230" ],
"summary" : "Moodle Cross-site Scripting vulnerability in the KSES text cleaning filter ",
"details" : "The KSES text cleaning filter in lib/weblib.php in Moodle before 1.8.13 and 1.9.x before 1.9.9 does not properly handle vbscript URIs, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via HTML input.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.9.0"
}, {
"fixed" : "1.9.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-2230"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/704c5dfed4f4531b6d74d19cfad573984e74885e"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=605809"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moodle/moodle"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20100621005117/http://secunia.com/advisories/40248"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20100711044720/http://secunia.com/advisories/40352"
}, {
"type" : "WEB",
"url" : "http://cvs.moodle.org/moodle/lib/weblib.php?r1=1.812.2.114&r2=1.812.2.115"
}, {
"type" : "WEB",
"url" : "http://cvs.moodle.org/moodle/lib/weblib.php?r1=1.970.2.171&r2=1.970.2.172"
}, {
"type" : "WEB",
"url" : "http://docs.moodle.org/en/Moodle_1.8.13_release_notes"
}, {
"type" : "WEB",
"url" : "http://docs.moodle.org/en/Moodle_1.9.9_release_notes"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2010-June/043285.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2010-June/043291.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2010-June/043340.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html"
}, {
"type" : "WEB",
"url" : "http://moodle.org/mod/forum/discuss.php?d=152368"
}, {
"type" : "WEB",
"url" : "http://tracker.moodle.org/browse/MDL-22042"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2010/06/21/2"
}, {
"type" : "WEB",
"url" : "http://www.vupen.com/english/advisories/2010/1530"
}, {
"type" : "WEB",
"url" : "http://www.vupen.com/english/advisories/2010/1571"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-07T22:53:57Z",
"nvd_published_at" : "2010-06-28T17:30:00Z"
}
}