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.
* 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.
Do you have additional information related to this advisory?
Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this
information to firstname.lastname@example.org