Secunia Logo
 
castor "rootpath" File Inclusion Vulnerabilities
Secunia Advisory: SA22527
Release Date: 2006-10-23
Last Update: 2006-10-27
Popularity: 5,138 views

Critical:
Highly critical
Impact: System access
Where: From remote
Solution Status: Unpatched

Software:castor 1.x
castor 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-5480
CVE-2006-5481


Description:
Some vulnerabilities have been reported in castor, which can be exploited by malicious people to compromise a vulnerable system.

Input passed to the "rootpath" parameter in multiple files is not properly verified before being used to include files. This can be exploited to execute arbitrary PHP code by including files from local or external resources.

Examples:
http://[host]/lib/rs.php?rootpath=[file]
http://[host]/lib/code.php?rootpath=[file]
http://[host]/lib/dbconnect.php?rootpath=[file]
http://[host]/lib/error.php?rootpath=[file]
http://[host]/lib/menu.php?rootpath=[file]

Note: Reportedly more files are affected.

Successful exploitation requires that "register_globals" is enabled and that support for ".htaccess" files is disabled.

The vulnerabilities are reported in version 1.1.1 and version 2.0 RC2. Other versions may also be affected.

Solution:
Edit the source code to ensure that input is properly verified.

Provided and/or discovered by:
Kw3rLN and an anonymous person.

Changelog:
2006-10-26: Added CVE references.

Original Advisory:
http://milw0rm.com/exploits/2606


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. Apple iPhone / iPod touch Multiple Vulnerabilities // 46 views
2. Sun Java JDK / JRE Multiple Vulnerabilities // 32 views
3. Adobe Flash Player Multiple Security Issues and Vulnerabilities // 29 views
4. BitDefender Antivirus PDF Processing Memory Corruption Vulnerability // 24 views
5. Easyedit CMS Multiple SQL Injection Vulnerabilities // 23 views
6. Microsoft XML Core Services Multiple Vulnerabilities // 22 views
7. Checkpoint VPN-1 Information Disclosure Vulnerability // 21 views
8. Fedora update for thunderbird // 21 views
9. ClipShare "chid" SQL Injection Vulnerability // 20 views
10. Softbiz Classifieds Script "msg" Cross-Site Scripting Vulnerability // 20 views