CVE-2008-1502 Moodle vulnerable to Cross-site scripting

Medium 4.3 Published Updated

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.

PackageAffectedFixed in
moodle/moodle PackagistAll versions1.8.5
moodle/moodle PackagistAll versions1.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.

All Moodle Moodle vulnerabilities

Sources

Also known as DEBIAN-CVE-2008-1502, GHSA-v759-3wr5-p294.

Is CVE-2008-1502 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free