hi im using acunetix to test my website the problem is with this script http://boedesign.com/blog/2007/02/18/ajax-star-rating/
acunetix doesnt show any message but when i test for blind sql i can get values like
8 and 1=0 --
8 and 31337-31337=0
in the rating_id mysql column, i want to only allow numbers in there, so i made a little fix but since the first number is 8 its passing trought the if, how can i fix it? its something like this at includes/rating_process.php
// IF JAVASCRIPT IS ENABLED
if($_POST){
$id = escape($_POST['id']);
$rating = (int) $_POST['rating'];
if($rating <= 5 && $rating >= 1 && $id >= 1 && $id <=9999999){
if(@mysql_fetch_assoc(mysql_query("SELECT id FROM ratings WHERE IP = '".$_SERVER['REMOTE_ADDR']."' AND rating_id = '$id'")) || isset($_COOKIE['has_voted_'.$id])){
echo 'already_voted';
} else {
and almost the same think at the "// IF JAVASCRIPT IS DISABLED"