One of my customer and a friend was forced to call me at 00:41 am GM+1 because of an xss issue from an other server, do you think that it is normal ?
I mean, the problem is not that I am supposed to sleep during the night, or supposed beeing retired from shaiya server for personal reasons, the problem is that, why the hell guys are you using these kind of scripts ? (from
I think, but I would not say things like that as I am a little respectfull)So.. where is the point of my post?
If you see something like that in your website, and if you are using sarest-based webscript, here is the fix:
1) Open your htdocs/inc/pdoConnect.php
add these lines at the end of the file:
PHP Code:
require_once '../lib/HTMLPurifier.auto.php';
$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);
3) thats it
If you want to check an XSS issue in an SQL Table type this is SSMS:
PHP Code:
SELECT * FROM Website.dbo.Chat WHERE message like '%<%%%>%' ORDER BY Time DESC
Feel free to use the HTMLPurifier lib for other scripts.. In fact you should use it at each sql to html output.
PS: Guys, this community should be a minimum mature.... Maybe that I will force the next servers that use these kind of attack to close in the future. Don't start hacking if you don't know how to do it...






