Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 30.06.2005, 18:31   #1
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default SQL Hacked, GM's Made, Fixes?

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/
Eanae is offline  
Old 30.06.2005, 19:27   #2
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default Re: SQL Hacked, GM's Made, Fixes?

Quote:
Originally Posted by Eanae
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]
HongK is offline  
Old 30.06.2005, 22:09   #3
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

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.
Metalmurphy is offline  
Old 01.07.2005, 01:16   #4
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

I need register.asp fix from sql injection please
kepler001 is offline  
Old 01.07.2005, 01:20   #5
noypi
Архивный участник
 
Join Date: Jun 2005
Posts: 104
Default

hmmm I think someone made a post about Anti SQL injection... try to search maybe u got lucky on it.
noypi is offline  
Old 01.07.2005, 01:23   #6
iamrend
Архивный участник
 
Join Date: May 2005
Posts: 315
Default

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
iamrend is offline  
Old 01.07.2005, 03:49   #7
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

Yeap thats cacheD getting owned..
Sakumi is offline  
Old 23.01.2006, 02:48   #8
khul
Архивный участник
 
Join Date: Oct 2005
Posts: 153
Default

so how to fix cached acces?
khul is offline  
Old 23.01.2006, 03:34   #9
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

Everytime some one bumps this, I laugh harder and harder at those images.
Kenster is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:31.