Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Tutorials & Guides (https://postpacific.mmorpg-game.online/forumdisplay.php?f=44)
-   -   [Share] server side html exploit fix, cloning char fix (https://postpacific.mmorpg-game.online/showthread.php?t=2152)

HF 23.12.2005 05:05

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 :)

top-gear 23.12.2005 06:55

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.

srh 23.12.2005 07:49

okok i tried to read PM :) i've check out few fings and then write some tutorial :P

kembl 23.12.2005 08:11

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!

tontor 23.12.2005 12:21

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.

top-gear 23.12.2005 12:34

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?

horyfilipe 23.12.2005 13:11

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.

tontor 23.12.2005 18:26

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.

Flamestrike 23.12.2005 18:42

In testing tontor. Big thanks

vex 23.12.2005 19:07

tontor the best!!!

testing too

toolpunk 23.12.2005 19:11

GREAT! :D
thx a lot :)
you are da man^^

Domzelan 23.12.2005 19:23

i dont know what to say :)))))))))) - SUPER

Radmin 23.12.2005 20:37

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....

tontor 23.12.2005 21:03

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.

vex 23.12.2005 21:08

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...

Alamar 23.12.2005 22:16

Maybe a stupid question, but if quotes are filtered, why it is necessary to filter dashes, too?

Radmin 23.12.2005 22:18

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..

toolpunk 23.12.2005 22:25

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 ;)

serjr 23.12.2005 22:30

GRRRR i will gnaw off you leg Radmin GRRRR
sry just can't deter myself

top-gear 23.12.2005 22:40

tontor please can you make a patch with the last fix only? my server freezes after 10 mins if I use the whole patch

Flamestrike 24.12.2005 00:46

Patch working fine to meh

rodier 24.12.2005 10:29

hi
how to use the help exploit? I simply try to go to doorman click on him.. he tell me something..then I click in help on open gate
<a action="bypass -h menu_select?ask=-201&reply=1">open</a>


but nothing does.. Im using tontor patch of course......... but 2 players told me, they seen player that open castle door..

is there another help html? or Im doing something wrong [and tontor patch is not 100% proof... maybe because we have link failed? but i think link patch failed is only about receipts.. and we have another ID... ]

horyfilipe 24.12.2005 14:03

Rodier, i think ur problem is link failed yes lol.. check offsets, man, and fix it

tontor 24.12.2005 16:33

Quote:

Originally Posted by rodier
hi
how to use the help exploit? I simply try to go to doorman click on him.. he tell me something..then I click in help on open gate
<a action="bypass -h menu_select?ask=-201&reply=1">open</a>


but nothing does.. Im using tontor patch of course......... but 2 players told me, they seen player that open castle door..

is there another help html? or Im doing something wrong [and tontor patch is not 100% proof... maybe because we have link failed? but i think link patch failed is only about receipts.. and we have another ID... ]

This would be in the bypass handler, not link, but correct your link problem, and again assure that this is really happening. If so then its definitely worth looking at. link handler is specific to linking htmls, bypass handles a majority of requests such as that one. but with link failed they can request the html (which they can because link is broken) they would be able to successfully send the bypass cmd.

Firedaemon 28.12.2005 03:04

Great work tontor; as always


All times are GMT. The time now is 16:43.