San Francisco: +1 (415) 635 3784  |  Geneva: +41 (022) 723 2424   |  
ImmuniWeb® Login | Register
ImmuniWeb® by High-Tech Bridge


High-Tech Bridge Newsletter

Subscribe to our newsletter and receive some or all of our corporate news, invitations to security events or HTB Security Advisories – you choose what you want to receive.

Multiple XSS in Hero Framework

Advisory ID:HTB23149
Product:Hero Framework
Vendor: Electric Function, Inc.
Vulnerable Versions:3.791 and probably prior
Tested Version:3.791
Advisory Publication:March 20, 2013 [without technical details]
Vendor Notification:March 20, 2013
Vendor Fix:March 29, 2013
Public Disclosure:April 10, 2013
Latest Update:April 5, 2013
Vulnerability Type:Cross-Site Scripting [CWE-79]
CVE Reference:CVE-2013-2649
Risk Level:Medium
CVSSv2 Base Score:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
Solution Status:Fixed by Vendor
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge Security Research Lab discovered two XSS vulnerabilities in Hero Framework, which can be exploited to perform cross-site scripting attacks against vulnerable application.

1) Multiple XSS in Hero Framework: CVE-2013-2649
1.1 The vulnerability exists due to insufficient sanitisation of user-supplied data in "username" HTTP GET parameter passed to "/users/login" URL. A remote attacker can trick a logged-in user to open a specially crafted link and execute arbitrary HTML and script code in victim's browser in context of the vulnerable website.
The exploitation example below uses JavaScript 'alert()' function to display user's cookies:
http://[host]/users/login?username=%22%3E%3Cscript%3Ealert%28document.cookie%29; %3C/script%3E

1.2 The vulnerability exists due to insufficient sanitisation of user-supplied data in "error" HTTP GET parameter passed to "/users/forgot_password" URL. The parameter is passed to the vulnerable script in base64 encoding. A remote attacker can trick a logged-in user to open a specially crafted link and execute arbitrary HTML and script code in victoms's browser in context of the vulnerable website.
The exploitation example below uses the same XSS payload as above encoded in base64 to display user's cookies:
http://[host]/users/forgot_password?error=PHNjcmlwdD5hbGVydChkb2N1bWVudC5jb29raW UpOzwvc2NyaXB0Pg==


ImmuniWeb® On-Demand Web Application Penetration Test


Solution:
Upgrade to Hero Framework version 3.80

More Information:
http://www.heroframework.com/download


References:
[1] High-Tech Bridge Advisory HTB23149 - https://www.htbridge.com/advisory/HTB23149 - Multiple XSS in Hero Framework.
[2] Hero Framework - http://www.heroframework.com/ - Hero is a white label, open source PHP website content management system (CMS) and development platform.
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
User Comments and Opinions


Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.