PDA

View Full Version : SQL Hacked, GM's Made, Fixes?


Eanae
30.06.2005, 18:31
Our SQL got hacked somehow. We believe it was an injection using the reg pages. The people made themselves GM's, and causes chaos all over the server. I've heard this has happened before. I banend their accounts, and added their IP bans to authD using the blockips.txt method, and took reg down temporarily. Is there any hard fix to this to stop hackers from getting control over our server?

Look at the damage caused here: http://www.mmj.pl/~perceptio/hack/

HongK
30.06.2005, 19:27
Our SQL got hacked somehow. We believe it was an injection using the reg pages. The people made themselves GM's, and causes chaos all over the server. I've heard this has happened before. I banend their accounts, and added their IP bans to authD using the blockips.txt method, and took reg down temporarily. Is there any hard fix to this to stop hackers from getting control over our server?

Look at the damage caused here: http://www.mmj.pl/~perceptio/hack/

Are you using the basic SQL registration page that came with projectc2beta3? That asp package? If so, that's your problem...You gotta rewrite that to provide protection against SQL injection because it's WIDE open...Suggestions would be to write your reg page in php instead of asp...Also include something like this to prevent injection:

[php:1:03d1f9c685]function check_inject()
{
$badchars = array(";", "'", "\"", "*", "DROP", "SELECT", "UPDATE", "DELETE", "-");

foreach($_POST as $value)
{
if(in_array($value, $badchars))
{
die("SQL Injection Detected\n
\nIP: ".$_SERVER['REMOTE_ADDR']);
**
else
{
$check = preg_split("//", $value, -1, PREG_SPLIT_OFFSET_CAPTURE);
foreach($check as $char)
{
if(in_array($char, $badchars))
{
die("SQL Injection Detected\n
\nIP: ".$_SERVER['REMOTE_ADDR']);
**
**
**
**
** [/php:1:03d1f9c685]

Metalmurphy
30.06.2005, 22:09
Hum just are you blocking access to port 2109 by any chances? I mean what makes u say it was SQL injection and not someone accessing trough cached.

kepler001
01.07.2005, 01:16
I need register.asp fix from sql injection please

noypi
01.07.2005, 01:20
hmmm I think someone made a post about Anti SQL injection... try to search maybe u got lucky on it.

iamrend
01.07.2005, 01:23
close all ports. we was the same problem but in our server no was time for a hack like it.
only open l2 and html ports.
And be carefull whit interactive ports :)

Sakumi
01.07.2005, 03:49
Yeap thats cacheD getting owned..

khul
23.01.2006, 02:48
so how to fix cached acces?

Kenster
23.01.2006, 03:34
Everytime some one bumps this, I laugh harder and harder at those images.