Advertisements

 EasyCalendar SQL Injection and Cross-Site Scripting

Sunday, 16 March 2008

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

1) Input passed to the "year" parameter in plugins/calendar/calendar_backend.php and "page" in ajaxp_backend.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

2) Input passed to the "day" parameter in plugins/calendar/calendar_backend.php is not 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 are confirmed in version 4.0tr. Other versions may also be affected.

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

Provided and/or discovered by:
JosS

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

http://secunia.com/advisories/29373/



Share this content:
        
Advertisements
Home | News | Articles | Advisories | Submit | Alerts | Links | What is XSS | About | Contact | Some Rights Reserved.