Exploit SQL Injection webzonegamerz Ranking

Newbie Spellweaver
Joined
May 13, 2009
Messages
24
Reaction score
7
This needs to be repaired urgently

PHP:
/ranking.php?Dios=&Order=LVL&Tribe=128%20declare%20@sql%20varchar(800)%20set%20@sql=0x(string to hex code)%20exec(@sql)%20select%201%20from%20Tantra..TantraBackup00%20where%201=1
 
Last edited:
Seems like one of my injection methods xd, try banning 'declare' word on your anti_sql.php



To see how serious it is, here is a video guys:

 
this is too serious, so that IP and ID of Colombia, is doing injection attacks to a server where I am working ...

is just one of the server where the Alxndr shown in the video ...
 
guys it is pretty simple to fix this issue. get rid of the get method and use post

That won't really fix it, you can use websites like



To send post and or get to any website.

If you want to fix it, at the top of the script just connect to a mysql database first and run the following php.
Code:
	foreach ($_GET as $key => $value) 
	{ 
		$_GET[$key] = mysql_real_escape_string($value); 
	}
	foreach ($_POST as $key => $value)
	{
		$_POST[$key] = mysql_real_escape_string($value); 
	}
 
Last edited:
That won't really fix it, you can use websites like



To send post and or get to any website.

If you want to fix it, at the top of the script just connect to a mysql database first and run the following php.
Code:
	foreach ($_GET as $key => $value) 
	{ 
		$_GET[$key] = mysql_real_escape_string($value); 
	}
	foreach ($_POST as $key => $value)
	{
		$_POST[$key] = mysql_real_escape_string($value); 
	}

That won't fix it either, it would be better if everyone use PDO
 
Back