Hello again. there is an old shop script i want to make it safe against sql injection(I dont want to make vast changes and rewrite the script).
i've written a code to filter get & post variables like this:
$banned = array("select", "from", "concat", "count", "insert", "delete", "database","group","null","ascii","union","where");
foreach($_GET as $x => $y)
if($y!=str_ireplace($banned, "", $y)) exit;
foreach($_POST as $x => $y)
if($y!=str_ireplace($banned, "", $y)) exit;
my hacker associate (the bad character of story) says: "that code works but i can send data to your script using hashig, so i can overcome your filter and reveal your username and password(the weakness of my script)".
now my question: can somebody send data using hashing to a script?
how to do?
and how to prevent?
thanks.