View Single Post
Old 21.12.2005, 13:23   #1
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default [fix] about "new" exploit sql inj ...

as i see, many ppl have problem with chars, that become an GM
this is classic sql inj (i do not post code "how to check" )

here we go, how to block this ...:

u need two users in your db server (i think your l2 server not use 'sa' account for running? is it? )

1 - user for server with ONLY exec rights, server getting all info thru stored procedures, so, direct queres like select/insert/update/delete/drop table ... do not working, and in that way u get char id from where user attempt exploit your server. if u found that your server get red lines like: SQL Failed with direct queries (i think this tables is "server" and "world_status") u need manually add this rights to this user. if red lines with words like exec lin_.... filed check it i think u found all answers in that line.

2 - user with "normal" rights (select/insert/update) for www account creation/stats (did u check what user input on this stage? )

i do not reply to any "how to". please, use google

sry for eng.

[rus]
классика ... к сожалению не многие ее читают.
[/rus]
srh is offline