Secunia Logo
Netsikker nu! 2008
 
Moodle KSES HTML Filter Bypass Vulnerability
Secunia Advisory: SA30986
Release Date: 2008-07-09
Last Update: 2008-09-10
Popularity: 1,212 views

Critical:
Highly critical
Impact: System access
Security Bypass
Where: From remote
Solution Status: Vendor Patch

Software:Moodle 1.8.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2008-1502


Description:
Some vulnerabilities have been reported in Moodle, which can be exploited by malicious people to bypass certain security restrictions.

1) Vulnerabilities are caused due to insufficient filtering functions within /lib/kses.php and lib/weblib.php and can be exploited to bypass HTML filtering policies.

2) Input passed to a call to "preg_replace()" with the "e" modifier in kses.php is not properly sanitised before being used. This can be exploited to inject and execute arbitrary PHP code.

The vulnerabilities are reported in versions prior to 1.8.5.

Solution:
Update to version 1.8.5 or upgrade to version 1.9.

The vendor recommends to use the option "Use HTML Purifier" in version 1.9.

Provided and/or discovered by:
Lukasz Pilorz, Allegro.pl, additional information from zurlich.lpt

Changelog:
2008-09-10: Added vulnerability #2. Raised criticality. Added link to "Original Advisory" section.

Original Advisory:
Moodle:
http://moodle.org/mod/forum/discuss.php?d=95031

http://milw0rm.com/exploits/6356


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Subdreamer Light Global Variables SQL Injection Vulnerability // 33 views
2. Trend Micro ServerProtect Multiple Buffer Overflow Vulnerabilities // 31 views
3. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 25 views
4. CA ARCserve Backup Multiple Vulnerabilities // 25 views
5. PluggedOut Blog "index.php" SQL Injection Vulnerabilities // 24 views
6. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 23 views
7. Journalness "last_module" PHP Code Execution // 20 views
8. Gentoo Portage Insecure Python Module Search Path Security Issue // 19 views
9. PHP Real Estate Classifieds "id" SQL Injection // 19 views
10. Built2go Real Estate Listings "event_id" SQL Injection // 18 views