![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#351 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 145
|
Quote:
query (as server do): exec lin_AddBlockList 1, N''delete from ....-- we get reply: Server: Msg 2627, Level 14, State 1, Procedure lin_AddBlockList, Line 41 Violation of PRIMARY KEY constraint 'PK_user_blocklist'. Cannot insert duplicate key in object 'user_blocklist'. Server: Msg 50000, Level 16, State 1, Procedure lin_AddBlockList, Line 44 Cannot find add blocklist: char id = [1], target naem[] The statement has been terminated. Server: Msg 229, Level 14, State 5, Line 1 DELETE permission denied on object '....', database 'lin2world', owner 'dbo'. |
|
|
|
|
|
#352 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
Quote:
is there not a way to limit the size of the execute line for the store procedure? i noticed that if u do anything longer than delete from...... it cuts the end off, would this be because of the NVARCHAR(50) in the procedures veriabley thingies? change the 50 to 17 maybe fix this problem? i dunno, i r teh nub at sql stuffs xD |
|
|
|
|
|
#353 |
|
Архивный участник
Join Date: May 2005
Posts: 115
|
what about bbs ?
|
|
|
|
|
#354 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
srh's fix helps, but still need keep select and insert rights for DB user.
IMHO tontor can make parser for sql injections in command parameters )) |
|
|
|
|
#355 |
|
Архивный участник
Join Date: May 2005
Posts: 63
|
So, what if hack@#s try to use exec?
The right way to solve this injection is replace any quote to double quote ' -> '' on any request from client, maybe torune can add this to his magic dll? I think not far this day, when l2server will be only addon for torune's dll
|
|
|
|
|
#356 |
|
Архивный участник
Join Date: Aug 2005
Posts: 605
|
RmzVoid delete your post, dont post direct commands like these!!!
I think the solution is to disable the block command server side. Is that possible? It surely requires hexing |
|
|
|
|
#357 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 145
|
Quote:
|
|
|
|
|
|
#358 | ||
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
|
||
|
|
|
|
#359 |
|
Архивный участник
Join Date: Aug 2005
Posts: 605
|
yes,that would be nice.tell me for sql 2000 too pls
Please someone tell me how to hex friendinvite and block. I don't want them to work at all. I don't know about bbs but those two commands are a serious problem right now. |
|
|
|
|
#360 |
|
Архивный участник
Join Date: Aug 2005
Posts: 145
|
okok i tried to read PM
i've check out few fings and then write some tutorial :P
|
|
|
|
|
#361 | |||
|
Архивный участник
Join Date: May 2005
Posts: 63
|
Quote:
this soluton for both 2000 and 2005, cause it in RAW-t-sql command format. that script still under update! be aware! |
|||
|
|
|
|
#362 | |
|
Архивный участник
Join Date: May 2005
Posts: 109
|
Quote:
|
|
|
|
|
|
#363 |
|
Архивный участник
Join Date: Aug 2005
Posts: 605
|
tontor if you find a solution pls post it at a seperate patch. My server freezes if I use help fix, I suppose cause of the too many accounts and online ppl. I would like to have a seperate tool to fix those probs.
I have the BBS function disabled,so its a bit difficult to inject through there don't you think? |
|
|
|
|
#364 |
|
Архивный участник
Join Date: Jul 2005
Posts: 242
|
top-gear how many players you have? Whats linerror says? I think last tontor's dll is 100% stable, i run 15 hours and since it was released, my server never crashed because of dll, only cause of the holy USERSOCKET.
Btw.. about usersocket, i realized when i optimize and reindex database, it happens less often. |
|
|
|
|
#365 |
|
Архивный участник
Join Date: May 2005
Posts: 109
|
I've added a hijack in assemble checking if the return is to CDBSocket::SendV if so, and the packet contains a unicode string to be assembled, it is filtered. It appears all sends to cached no matter what cdb send function is used will at one time call CDBSocket::SendV, this should cover all input to cached. All user input seems to be unicode not ascii.
So here you go, hopefully should solve sql injection problems. Filters are for ' " and -. Upon attempt it is logged to l2server with not much detail, just the string that was attempted and the packet gets dropped, you'll see an assemble error too, because i fail the assemble of the packet if filter matches, causing packet to be dropped. |
|
|
|
|
#366 |
|
Архивный участник
Join Date: Aug 2005
Posts: 434
|
In testing tontor. Big thanks
|
|
|
|
|
#367 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
tontor the best!!!
testing too |
|
|
|
|
#368 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
GREAT!
![]() thx a lot ![]() you are da man^^ |
|
|
|
|
#369 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
i dont know what to say
))))))))) - SUPER
|
|
|
|
|
#370 |
|
Архивный участник
Join Date: Oct 2005
Posts: 54
|
tonor plz PM me.. i'm send for u new bug.. for get all skill...
i'dont understand how fixed him.. maby u work for it... maby... 4it0rz take for all admin Merri xristmas surprize... wtf in word.... |
|
|
|
|
#371 | |
|
Архивный участник
Join Date: May 2005
Posts: 109
|
Quote:
|
|
|
|
|
|
#372 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
Have a little not critical bug
--- WARN:Possible SQL Injection attempt: "MacKu-LLIoy" packet was discarded --- I think need to change one dash to double dash... |
|
|
|
|
#373 |
|
Архивный участник
Join Date: Jul 2005
Posts: 5
|
Maybe a stupid question, but if quotes are filtered, why it is necessary to filter dashes, too?
|
|
|
|
|
#374 |
|
Архивный участник
Join Date: Oct 2005
Posts: 54
|
ok..ok.. boyz...
dont hate me... u'm post bugz ... and still witing who fixid it... $) more admins... more fasted admins... and i know.. fix will be created.. if i dont posted it - u dont know what's a bug... 8) sry all.. |
|
|
|
|
#375 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
could you please stop posting a complete how to where every idiot can read it?
its cause of people like you that more and more pservers are under attack of cheaters and botters. please remove it from your post and pm tontor and torune. they are working on a solution... keep in mind that you shouldnt flood their inbox with thousands of messages. when you message em once its enough
|
|
|
|
|