Surprised someone never released something like this before. Nice work :)
This is a discussion on PHOENIXPHP AND OTHER CMS: Fix (almost) all SQL injection holes within the Habbo Releases forums, part of the Habbo Hotel category; Sick of fixing all sql injections in PhoenixPHP? Here's a little tip to fix (almost) all holes! step 1: open ...

Sick of fixing all sql injections in PhoenixPHP? Here's a little tip to fix (almost) all holes!
step 1: open global.php
step 2 add under "$users = new Users();"
step 3: Save and you're done!PHP Code:foreach($_GET as $key => $value){
$_GET[$key]=$core->EscapeString($value);
}
foreach($_POST as $key => $value){
$_POST[$key]=$core->EscapeString($value);
}
foreach($_REQUEST as $key => $value){
$_REQUEST[$key]=$core->EscapeString($value);
}
PS: you can use it for other cmses also: add this to a file like global.php or config.php
PHP Code:foreach($_GET as $key => $value){
$_GET[$key]=mysql_real_escape_string(stripslashes(trim(htmlspecialchars($value))));
}
foreach($_POST as $key => $value){
$_POST[$key]=mysql_real_escape_string(stripslashes(trim(htmlspecialchars($value))));
}
foreach($_REQUEST as $key => $value){
$_REQUEST[$key]=mysql_real_escape_string(stripslashes(trim(htmlspecialchars($value))));
}
Last edited by imstr; 06-01-12 at 09:58 PM.
Surprised someone never released something like this before. Nice work :)
Ah, good work my friend!
You did a great Job dude!
Greetz,
Good job!
thanks!
thanks dude
Wait, so all this guy did was take this code out of BrickPHP and then just release it? O.o
Stop giving the guy a hard time. This is very useful and effective. Yes joopie has code similar to this but this guy made it work for phoenixphp and will help a lot of people.
Good job.
Posted via Mobile Device