Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Stickies
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 22.12.2005, 12:58   #351
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default

Quote:
Originally Posted by serjr
2Srh you write right ideas but that will not help because inject work in stored procedure environment, not direct to base. Your post is not a panacea.
ok, logging in as server login in QA, selecting db lin2world
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'.
srh is offline  
Old 22.12.2005, 15:16   #352
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

Quote:
Originally Posted by srh
Cannot find add blocklist: char id = [1], target naem[]
<offtopic> nice typo by ncsoft there xD </offtopic>
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
testdude is offline  
Old 22.12.2005, 15:22   #353
serjr
Архивный участник
 
Join Date: May 2005
Posts: 115
Default

what about bbs ?
serjr is offline  
Old 22.12.2005, 16:02   #354
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default

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 ))
RmzVoid is offline  
Old 22.12.2005, 16:59   #355
kembl
Архивный участник
 
Join Date: May 2005
Posts: 63
Default

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
kembl is offline  
Old 23.12.2005, 02:39   #356
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

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
top-gear is offline  
Old 23.12.2005, 04:36   #357
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default

Quote:
Originally Posted by RmzVoid
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 ))
as i say in my post u need some select only rights on few tables (builder... and user_data) and all (for server account).
srh is offline  
Old 23.12.2005, 05:05   #358
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by srh
Quote:
Originally Posted by RmzVoid
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 ))
as i say in my post u need some select only rights on few tables (builder... and user_data) and all (for server account).
i cant make setting in sql2005. You can help me? tutorial guide
HF is offline  
Old 23.12.2005, 06:55   #359
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

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.
top-gear is offline  
Old 23.12.2005, 07:49   #360
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default

okok i tried to read PM i've check out few fings and then write some tutorial :P
srh is offline  
Old 23.12.2005, 08:11   #361
kembl
Архивный участник
 
Join Date: May 2005
Posts: 63
Default

Quote:
Originally Posted by HF
Quote:
Originally Posted by srh
Quote:
Originally Posted by RmzVoid
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 ))
as i say in my post u need some select only rights on few tables (builder... and user_data) and all (for server account).
i cant make setting in sql2005. You can help me? tutorial guide
Check here https://postpacific.mmorpg-game.onli...?p=26910#26910
this soluton for both 2000 and 2005, cause it in RAW-t-sql command format.
that script still under update! be aware!
kembl is offline  
Old 23.12.2005, 12:21   #362
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

Quote:
Originally Posted by RmzVoid
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 ))
Already working on it :). It will be posted here when finished, as far as BBS injection still goes. I tested it with example you provided as well as my own (serjr) and the injection failed. Since you said you were not 100% sure was still through BBS I'll assume it was through /block /friendinvite etc unless can provide more details.
tontor is offline  
Old 23.12.2005, 12:34   #363
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

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?
top-gear is offline  
Old 23.12.2005, 13:11   #364
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

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.
horyfilipe is offline  
Old 23.12.2005, 18:26   #365
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default sql injection

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.
tontor is offline  
Old 23.12.2005, 18:42   #366
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

In testing tontor. Big thanks
Flamestrike is offline  
Old 23.12.2005, 19:07   #367
vex
Архивный участник
 
Join Date: Dec 2005
Posts: 83
Default

tontor the best!!!

testing too
vex is offline  
Old 23.12.2005, 19:11   #368
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

GREAT!
thx a lot
you are da man^^
toolpunk is offline  
Old 23.12.2005, 19:23   #369
Domzelan
Архивный участник
 
Join Date: Apr 2005
Posts: 599
Default

i dont know what to say ))))))))) - SUPER
Domzelan is offline  
Old 23.12.2005, 20:37   #370
Radmin
Архивный участник
 
Join Date: Oct 2005
Posts: 54
Default

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....
Radmin is offline  
Old 23.12.2005, 21:03   #371
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

Quote:
Originally Posted by Radmin
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....
Awaiting your reply.
tontor is offline  
Old 23.12.2005, 21:08   #372
vex
Архивный участник
 
Join Date: Dec 2005
Posts: 83
Default

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...
vex is offline  
Old 23.12.2005, 22:16   #373
Alamar
Архивный участник
 
Join Date: Jul 2005
Posts: 5
Default

Maybe a stupid question, but if quotes are filtered, why it is necessary to filter dashes, too?
Alamar is offline  
Old 23.12.2005, 22:18   #374
Radmin
Архивный участник
 
Join Date: Oct 2005
Posts: 54
Default

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..
Radmin is offline  
Old 23.12.2005, 22:25   #375
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

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
toolpunk 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 02:54.