CVE-2008-1502 Moodle vulnerable to Cross-site scripting
Remote attackers can bypass HTML filtering in the KSES library to conduct cross-site scripting attacks via crafted URL protocols.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2008-1502?
CVE-2008-1502 is a medium-severity cross-site scripting vulnerability in Moodle Moodle, published on 25 Mar 2008. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2008-1502?
2 open source packages ship an affected version, including moodle/moodle. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
moodle/moodle Packagist | All versions | 1.8.5 |
moodle/moodle Packagist | All versions | 1.8.5 |
Products include Egroupware Egroupware, Moodle Moodle.
How do I fix CVE-2008-1502?
Upgrade moodle/moodle to 1.8.5 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2008-1502 being exploited?
There is no known exploitation of CVE-2008-1502 in the wild and no public exploit code.
Other vulnerabilities in Moodle Moodle
- CVE-2008-2041 Code injection in n/a
- CVE-2007-3154 Unspecified vulnerability in Walter Zorn wz_tooltip.js (aka wz_tooltips) before 4.01, as used by eGroupWare before 1.2.107-2 and other packa
- CVE-2007-3155 Other in n/a
- CVE-2026-22243 EGroupware has SQL Injection in Nextmatch Filter Processing
- CVE-2014-2988 Code injection in n/a
Sources
Also known as DEBIAN-CVE-2008-1502, GHSA-v759-3wr5-p294.