phpCommunityCalendar Multiple Vulnerabilities
Secunia Advisory: SA16721
Release Date: 2005-09-07
Last Update: 2006-06-08
Popularity: 5,150 views

Critical:
Moderately critical
Impact: Security Bypass
Cross Site Scripting
Manipulation of data
Where: From remote
Solution Status: Unpatched

Software:phpCommunityCalendar 4.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-2880
CVE-2005-2882
CVE-2005-2881
CVE-2006-2797


Description:
rgod has discovered some vulnerabilities in phpCommunityCalendar, which can be exploited by malicious people to conduct cross-site scripting, script insertion, and SQL injection attacks.

1) Some input isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Examples:
* The "Username" parameter in webadmin/login.php
* The "LocationID" parameter in week.php
* The "query" parameter in month.php and day.php
* The "ID" parameter in event.php
* The "CalendarDetailsID" parameter in admin/delCalendar.php
* The "AdminUserID" parameter in admin/delAdmin.php
* The "EventLocationID" parameter in admin/delAddress.php
* The "LocationID" parameter in admin/delCategory.php

Successful exploitation requires that "magic_quotes_gpc" is disabled for some of the parameters. Access to the "admin" directory requires administrative privileges.

2) Input passed to certain fields when adding an event isn't properly sanitised before being used. This can be exploited to inject arbitrary HTML and script code, which will be executed in an administrator's browser session in context of an affected site when the malicious event is viewed when approving events.

3) Input passed to the "LocationID" and "font" parameters in various scripts, and the "CeTi", "Contact", "Description", "AddressLink", and "ShowAddress" parameters in "event.php" isn't properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

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

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

Use another product.

Provided and/or discovered by:
rgod

Additional information provided by X0r_1.

Changelog:
2005-09-23: Added CVE references.
2005-09-27: Added CVE reference.
2006-05-24: Added additional information provided by X0r_1.
2006-06-08: Added CVE reference.

Original Advisory:
http://www.rgod.altervista.org/phpccal.html
http://milw0rm.com/exploits/1818


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. Adobe Flash Player Multiple Vulnerabilities // 35 views
2. Zeroboard Multiple Script Insertion Vulnerabilities // 31 views
3. Opera Multiple Vulnerabilities // 31 views
4. phpBB "cur_password" Cross-Site Scripting Vulnerability // 29 views
5. Microsoft Word Malformed Object Pointer Vulnerability // 28 views
6. Apple QuickTime Multiple Vulnerabilities // 28 views
7. Subdreamer Light Global Variables SQL Injection Vulnerability // 26 views
8. Internet Explorer DHTML Edit ActiveX Control Cross-Site Scripting // 26 views
9. Cisco ASA and PIX Security Appliances Multiple Vulnerabilities // 26 views
10. Zeroboard Two Vulnerabilities // 25 views