Vulnerability ID: HTB22693 Reference: http://www.htbridge.ch/advisory/xss_in_clansphere.html Product: CLANSPHERE Vendor: csphere.eu ( http://www.csphere.eu/ ) Vulnerable Version: 2010.0 Final Vendor Notification: 02 November 2010 Vulnerability Type: XSS (Cross Site Scripting) Status: Fixed by Vendor Risk level: Medium 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 "/mods/gallery/print_now.php" script to properly sanitize user-supplied input in "pic" and "size" variables. 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. An attacker can use browser to exploit this vulnerability. The following PoC is available: http://[host]/mods/gallery/print_now.php?pic=%22%3E%3Cscript%3Ealert%28%22XSS%22%29;%3C/script%3E http://[host]/mods/gallery/print_now.php?pic=1&size=%22%3E%3Cscript%3Ealert%28%22XSS%22%29;%3C/script%3E Solution: Upgrade to the most recent version