[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simple Machines Forum "SMF Shoutbox" Mod Persistent XSS
- To: bugtraq@xxxxxxxxxxxxxxxxx
- Subject: Re: Simple Machines Forum "SMF Shoutbox" Mod Persistent XSS
- From: vermsky@xxxxxxxxxxxxxxxxxx
- Date: 21 Mar 2008 20:36:21 -0000
Here's the solution:
After you have installed the shoutbox please modify the file sboxDB.php.
Please search for
Code:
Code: [Select]
// handle special characters
$content = addslashes($piph . $content);
and replace this with
Code:
Code: [Select]
// handle special characters
$content = addslashes($piph . $content);
// enquote html and script code to avoid html/javascript injection
$content = htmlentities($content, ENT_QUOTES);