CVE-2008-1502: Moodle/moodle Cross-Site Scripting Vulnerability
MODERATECVE-2008-1502 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 vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 1.8.5.
CVE-2008-1502 at a Glance
How to Fix CVE-2008-1502
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.5
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-2008-1502, 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.5), 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-2008-1502 Affected Moodle/moodle Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moodle/moodle
|
Packagist |
< 1.8.5
|
1.8.5
|
References
Frequently Asked Questions
What is CVE-2008-1502?
Which Moodle/moodle versions are affected?
What version fixes CVE-2008-1502?
Is moodle/moodle affected?
What CWE is associated with CVE-2008-1502?
How can I check Packagist dependencies for CVE-2008-1502?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v759-3wr5-p294",
"modified" : "2024-02-09T15:44:56Z",
"published" : "2022-05-01T23:40:50Z",
"aliases" : [ "CVE-2008-1502" ],
"summary" : "Moodle vulnerable to Cross-site scripting",
"details" : "The `_bad_protocol_once` function in `phpgwapi/inc/class.kses.inc.php` in KSES, as used in eGroupWare before 1.4.003, Moodle before 1.8.5, and other products, allows remote attackers to bypass HTML filtering and conduct cross-site scripting (XSS) attacks via a string containing crafted URL protocols.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-1502"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/41435"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moodle/moodle"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/658-1"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20080709031015/http://www.securityfocus.com/bid/28424"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20080828131802/http://secunia.com/advisories/31017"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20080905011948/http://secunia.com/advisories/31018"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20081011001554/http://secunia.com/advisories/31167"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20081025081058/http://secunia.com/advisories/32400"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20081028073531/http://secunia.com/advisories/32446"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20090129193143/http://secunia.com/advisories/30986"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20100819022833/http://secunia.com/advisories/30073"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20120719035305/http://secunia.com/advisories/29491"
}, {
"type" : "WEB",
"url" : "https://www.redhat.com/archives/fedora-package-announce/2008-July/msg00331.html"
}, {
"type" : "WEB",
"url" : "http://docs.moodle.org/en/Release_Notes#Moodle_1.8.5"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2008/dsa-1691"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2009/dsa-1871"
}, {
"type" : "WEB",
"url" : "http://www.egroupware.org/changelog"
}, {
"type" : "WEB",
"url" : "http://www.egroupware.org/viewvc/branches/1.4/phpgwapi/inc/class.kses.inc.php?r1=23625&r2=25110&pathrev=25110"
}, {
"type" : "WEB",
"url" : "http://www.gentoo.org/security/en/glsa/glsa-200805-04.xml"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2008/07/08/14"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-09T15:44:56Z",
"nvd_published_at" : "2008-03-25T19:44:00Z"
}
}