PHP-Fusion Setuser.PHP HTML Injection Vulnerability

BID:12853

Info

PHP-Fusion Setuser.PHP HTML Injection Vulnerability

Bugtraq ID: 12853
Class: Input Validation Error
CVE: CVE-2005-0829
Remote: Yes
Local: No
Published: Mar 19 2005 12:00AM
Updated: Jul 12 2009 10:56AM
Credit: Discovery of this vulnerability is credited to the PersianHacker Team <[email protected]>.
Vulnerable: PHP-Fusion PHP-Fusion 5.0 1 Service Pack
PHP-Fusion PHP-Fusion 5.0
PHP-Fusion PHP-Fusion 4.0 1
PHP-Fusion PHP-Fusion 4.00
Not Vulnerable:

Discussion

PHP-Fusion Setuser.PHP HTML Injection Vulnerability

PHP-Fusion is reportedly affected by a HTML injection vulnerability. This issue is due to the application failing to properly sanitize user-supplied input passed to the 'setuser.php' script before using it in dynamically generated content.

This vulnerability is reported to affect PHP-Fusion version 5.01, however the vendor reports that the vulnerability might exist in an alteration that is planned for version 5.02. This alteration was recently released to the PHP-Fusion community as a mod for version 5.01.

This BID will be updated as soon as further information is made available.

Exploit / POC

PHP-Fusion Setuser.PHP HTML Injection Vulnerability

The following exploit is available:

Solution / Fix

PHP-Fusion Setuser.PHP HTML Injection Vulnerability

Solution:
A fix for this issue is pending release. Customers are advised to edit 'fusion_core.php':

Look for the following line, located after line 150: if (isset($_POST['login'])) {
$result = dbquery("SELECT * FROM ".$fusion_prefix."users WHERE user_name='".$_POST['user_name']."' and user_password=md5('".$_POST['user_pass']."')");

Replace the above code with these 4 lines:

$user_name = stripinput($_POST['user_name']);
$user_pass = md5($_POST['user_pass']);
if (!preg_match("/^[-0-9A-Z_@\s]+$/i", $user_name)) { header("Location: ".FUSION_BASE."index.php"); exit; }
$result = dbquery("SELECT * FROM ".$fusion_prefix."users WHERE user_name='$user_name' and user_password='$user_pass'");

References

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report