Cross-Site Scripting (XSS) in Pivotx


Advisory ID: HTB23087 Product: Pivotx Vendor: pivotx.net Vulnerable Version(s): 2.3.2 and probably prior Tested Version: 2.3.2 Vendor Notification: 18 April 2012 Vendor Patch: 18 April 2012 Public Disclosure: 9 May 2012 Vulnerability Type: Cross-Site Scripting (XSS) CVE Reference: CVE-2012-2274 Solution Status: Fixed by Vendor Risk Level: Medium Credit: High-Tech Bridge SA Security Research Lab ( https://www.htbridge.com/advisory/ ) ----------------------------------------------------------------------------------------------- Advisory Details: High-Tech Bridge SA Security Research Lab has discovered vulnerabiliy in Pivotx, which can be exploited to perform Cross-Site Scripting (XSS) attacks. 1) Cross-Site Scripting (XSS) in Pivotx: CVE-2012-2274 1.1 Input passed via the "file" GET parameter to /pivotx/ajaxhelper.php is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in administrator's browser session in context of the affected website. The following PoC (Proof of Concept) demonstrates the vulnerability: http://[host]/pivotx/ajaxhelper.php?function=view&file=%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E ----------------------------------------------------------------------------------------------- Solution: Fixed in svn repository. Apply vendor's patch. More Information: http://pivot-weblog.svn.sourceforge.net/viewvc/pivot-weblog?view=revision&revision=4145 http://pivot-weblog.svn.sourceforge.net/viewvc/pivot-weblog?view=revision&revision=4147 ----------------------------------------------------------------------------------------------- References: [1] High-Tech Bridge Advisory HTB23087 - https://www.htbridge.com/advisory/HTB23087 - Cross-Site Scripting (XSS) in Pivotx. [2] Pivotx - http://pivotx.net - PivotX is free software to help you maintain dynamic sites such as weblogs, online journals and other frequently updated websites in general. It's written in PHP and uses MySQL or flat files as a database. ----------------------------------------------------------------------------------------------- Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.