Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 31.08.2005, 21:54   #1
bob1122
Архивный участник
 
Join Date: Aug 2005
Posts: 278
Default [HELP] Server was hacked sql injection way

Unfortunatly my server got hacked, so im asking for a bit off help, I just ordered a Hardware router ... but until then can someone help me stop this sql injection with the port blocking method, i was told me about gpedit.msc but i cant understand what to do with it.

Since my english isnt perfect just ask me questions when you dont udnerstand ...

thanks in advanded ..
bob
bob1122 is offline  
Old 31.08.2005, 23:31   #2
bob1122
Архивный участник
 
Join Date: Aug 2005
Posts: 278
Default

Im using the anti help.htm exploit, the one with l2player....i think i need to modify the client and server signature, CAN some one please please please pm me or post how to change it.
bob1122 is offline  
Old 01.09.2005, 02:23   #3
DreadWolf
Архивный участник
 
Join Date: Jul 2005
Posts: 45
Default

SQL injection cannot be blocked by a router or portblocking of any kind. You need a good way to filter out your user input on the registration fields on your server.

Some people have posted ways to get around it on the L2REG asp registration system, and there's a PHP version out also I believe. Personally I wrote my own but I cannot share it for security reasons.
DreadWolf is offline  
Old 01.09.2005, 18:00   #4
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

what about blocking every ip that comes from outside except on port 2106 and 7777 and only allow the ip of my website(registration)?
Phantom2005 is offline  
Old 02.09.2005, 13:21   #5
DreadWolf
Архивный участник
 
Join Date: Jul 2005
Posts: 45
Default

I am not sure you quite understand how it works. The problem is basically the website creates the open door for infiltration. If you have a server you'll need a web registration for it. If you have web registration you have a site with at least partial access to your database to create the accounts.

So now if your registration system does not properly validate the user input in the login and password fields for example, they can just write out SQL queries in those fields and do what they wish with your database. I heard the asp registration package most servers are using has this vulnerability but I am not exactly sure since I am not using it anyway.

Just make sure you restrict the user input to only alphanumeric characters filtering out quotes, brackets, semicolon, period, etc.
DreadWolf is offline  
Old 02.09.2005, 15:32   #6
bob1122
Архивный участник
 
Join Date: Aug 2005
Posts: 278
Default

Quote:
Originally Posted by Phantom2005
what about blocking every ip that comes from outside except on port 2106 and 7777 and only allow the ip of my website(registration)?
But how can i do this,,,, thats what im asking
bob1122 is offline  
Old 02.09.2005, 16:36   #7
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

You need a router/firewall.
flakka is offline  
Old 02.09.2005, 16:40   #8
MaXx
Архивный участник
 
Join Date: Jul 2005
Posts: 11
Default

Well, if you talking about injections through registration. asp/php
{
Block ports to prevent SQL-injections. :roll:
You need to learn some basic programing to understand what an SQL-injection is.
}
MaXx is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 17:48.