chillyCMS "name" Cross-Site Scripting and SQL Injection Vulnerabilities
Description
AmnPardaz Security Research Team has discovered some vulnerabilities in chillyCMS, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks.
1) Input passed via the "name" parameter to core/showsite.php when using the login module 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.
2) Input passed via the "name" parameter to core/showsite.php when using the login module is not properly sanitised before being used in SQL queries in core/user.class.php. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
The vulnerabilities are confirmed in version 1.1.3. Other versions may also be affected.
Vulnerable Products
Vulnerable Software: chillyCMS 1.x
Solution
Update to version 1.2.1, which fixes vulnerability #2. Edit the source code to ensure that input is properly sanitised.