Secunia Logo  
 
PHP iCalendar File Inclusion and Calendar Upload Vulnerabilities
Secunia Advisory: SA19285
Release Date: 2006-03-21
Popularity: 7,649 views

Critical:
Highly critical
Impact: Exposure of sensitive information
System access
Where: From remote
Solution Status: Unpatched

Software:PHP iCalendar 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-1291
CVE-2006-1292


Description:
rgod has discovered two vulnerabilities in PHP iCalendar, which can be exploited by malicious people to disclose potentially sensitive information and to compromise a vulnerable system.

1) Input passed to the "cookie_language" and the "cookie_style" parameters in the "phpicalendar" cookie is not properly verified before being used to include files. This can be exploited to include arbitrary files from local resources.

The vulnerability may be related to:
SA17328

2) Missing access control to the calendar upload directory can be exploited to upload arbitrary PHP files by passing a specially-crafted PUT request with a filename containing a NULL character in the "X-WR-CALNAME" parameter to publish.ical.php.

Successful exploitation requires that "phpicalendar_publishing" is set to 1 in config.inc.php.

The vulnerabilities have been confirmed in version 2.21. Other versions may also be affected.

Solution:
Edit the source code to ensure that input is properly sanitised. Disable the calendar upload functionality.

Provided and/or discovered by:
rgod

Original Advisory:
http://www.milw0rm.com/exploits/1585
http://www.milw0rm.com/exploits/1586

Other References:
SA17328:
http://secunia.com/advisories/17328/


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. Drupal Project Module File Upload and Cross-Site Scripting // 49 views
2. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 41 views
3. Lasso OpenSSL "DSA_verify()" Spoofing Vulnerability // 39 views
4. Symantec Mail Security for SMTP Response Handling Denial of Service // 39 views
5. SmbFTPD Long Command Processing Vulnerability // 38 views
6. FreeBSD update for lukemftpd // 33 views
7. PHP-Fusion Members CV Module "sortby" SQL Injection Vulnerability // 31 views
8. Drupal Project Issue Tracking Module Multiple Vulnerabilities // 30 views
9. Cisco Global Site Selector DNS Request Denial of Service // 30 views
10. Xdg-utils mailcap Command Execution Security Issue // 29 views