Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   [SHARE] How to "fix" the AuthD exploit. (https://postpacific.mmorpg-game.online/showthread.php?t=7349)

PyroMaker 14.04.2007 00:04

[SHARE] How to "fix" the AuthD exploit.
 
Ok guys... Lately a lot of servers got owned by this exploit where you just pick an account ID and pick any chars you want... Lots of servers got corrupted, people getting in GM accounts and summoning items, to sum it up, it's a total CHAOS. Anyways, this is how you should be able to temporarily fix it:

1 - First off, backup your lin2world and lin2db databases, if anything goes wrong, you'll be able to restore your databases and start it over again without being fucked over.

2 - Open your enterprise manager whatsoever in MSSQL, make a new query, put this into it and execute:

Code:

use lin2world
update user_data
set account_id = account_id + 621854

// This is just an example, you could use any other number you want, but with that number the noobs are gonna try to find the account ID's forever.

3 - After you've done that, unlock the lin2db database, make a new query, type this in and execute:

Code:

use lin2db
update user_account
set uid = uid + 621854

// Keep in mind the number should be the same in both, else it won't work.

4 - Reload the server.


Now script kiddies are gonna try to find the account ID's, they'll start by 1, 2, 3, 4, 5, 6, 7, 10k, 20k, 40k, 50k, 60k, 70k, until they go like WHAT THE FUCK and /wrist.

Hope it helps you, thank you Mac for helping me out with this.

Best regards.

testdude 14.04.2007 00:11

default db wont let u edit uid because its on auto increment, so u usually gotta disable that first...

Insight 14.04.2007 00:18

this is still hardly a fix, more like a bandage like every other "fix" posted, but if nobody actually has the patience to figure out the number it becomes efective i guess

PyroMaker 14.04.2007 00:19

Quote:

Originally Posted by testdude (Post 83781)
default db wont let u edit uid because its on auto increment, so u usually gotta disable that first...

Yep, I mentioned it there... You gotta unlock it first, edit it then lock it back again.

PyroMaker 14.04.2007 00:21

Quote:

Originally Posted by Insight (Post 83782)
this is still hardly a fix, more like a bandage like every other "fix" posted, but if nobody actually has the patience to figure out the number it becomes efective i guess

Thing is, most people who do this are script kiddies, they have no clue how it works, they just want to try it out... Most of them are stupid, they'll give up after ID 20 or something, they'll probably go like: "Bummer, doesn't work on this server" *Next*

Insight 14.04.2007 00:24

haha ye, anyway thanks for the share

Insight 14.04.2007 01:21

also pyromaker didnt referred but i will, to unblock the lin2db -> user_account -> uid, open mssql->lin2db-> right click user_account->modify->column properties->scroll down to identify specification, expand it and change (Is Identify) to No ->close and save, run the query, after that go back to the properties and change the (Is Identify) to Yes and your good to go :P

FidoW 14.04.2007 02:33

Remember to update builder_account and user_newbie tables in lin2world too

And if you use Community Board need to update several tables too.

elcapo 14.04.2007 02:34

/socialbow PyroMaker.

I though in that "fix" but i guessed (wrongly) that account_id was in many tables, but.. not.

Is the best fix i read by now.

FidoW 14.04.2007 03:32

Quote:

Originally Posted by elcapo (Post 83791)
/socialbow PyroMaker.

I though in that "fix" but i guessed (wrongly) that account_id was in many tables, but.. not.

Is the best fix i read by now.

I dont know if is casual or what ;) but i do the same modification yesterday. :happy4: and m4rk make me a suggestion like that today (all people thinking the same at same time xD)

Tables I found is needed to update:

lin2world
user_data
builder_account
user_newbie

lin2db
user_account

petition
petition

lin2comm
user_memo
board_1
board_2
board_ ...
board_ ....
comment_1
comment_2
comment_...
comment_....

lin2clancomm
clanbbs_1
clanbbs_2
clanbbs_...
clanbbs_....



Obviuslly this isnt a fix but will make harder to found the correct account_id, but... a smart person will found it very fast... i mean...is possible to get account_id of your account very easy...so...you will know the new range... but for "script kiddies" this is a big deal :D

I even close reg page to prevent some stupid people from trying to exploit it... and it will continue like that until i get a real fix...

nish 14.04.2007 03:45

cool share im gonna try this out thanks guys

FidoW 14.04.2007 03:56

One more thing... when you update user_data in lin2world.. be carefull with deleted and banned chars (account_id = -1 or -2)

Code:

USE lin2db
UPDATE user_account SET uid = uid + 621854

USE lin2world
UPDATE user_data SET account_id = account_id + 621854 WHERE account_id > 0
UPDATE builder_account SET account_id = account_id + 621854
UPDATE user_newbie SET account_id = account_id + 621854

USE petition
UPDATE petition SET accountid = accountid + 621854

USE lin2comm
UPDATE board_1 SET account_id = account_id + 621854
UPDATE board_2 SET account_id = account_id + 621854
...

UPDATE comment_1 SET account_id = account_id + 621854
UPDATE comment_2 SET account_id = account_id + 621854
...

USE lin2clancomm
UPDATE clanbbs_1 SET account_id = account_id + 621854
UPDATE clanbbs_2 SET account_id = account_id + 621854
...


Rexx 14.04.2007 04:11

Thanks for sharing this work around with us.

To Unlock lin2db in MSSQL 2000.
open Lin2db,
right click user_account,
open design table,
highlight uid,
change identity to No, its located on the lower half of the page.

Make your changes, change identity back to yes.

Thanks

Rexx

elcapo 14.04.2007 04:17

Quote:

Originally Posted by FidoW (Post 83796)
One more thing... when you update user_data in lin2world.. be carefull with deleted and banned chars (account_id = -1 or -2)

Code:

USE lin2db
UPDATE user_account SET uid = uid + 621854

USE lin2world
UPDATE user_data SET account_id = account_id + 621854 WHERE account_id > 0
UPDATE builder_account SET account_id = account_id + 621854
UPDATE user_newbie SET account_id = account_id + 621854

USE petition
UPDATE petition SET accountid = accountid + 621854

USE lin2comm
UPDATE board_1 SET account_id = account_id + 621854
UPDATE board_2 SET account_id = account_id + 621854
...

UPDATE comment_1 SET account_id = account_id + 621854
UPDATE comment_2 SET account_id = account_id + 621854
...

USE lin2clancomm
UPDATE clanbbs_1 SET account_id = account_id + 621854
UPDATE clanbbs_2 SET account_id = account_id + 621854
...


You are right FidoW, to know account_id is R E A L L Y easy.
But, we can use equations ^^

Forcer 14.04.2007 06:31

Better way is random 7digit id every account

PyroMaker 14.04.2007 13:40

Yeah guys share with us every single solution you can find for this problem, this is no longer about me or you, or X server and Y server, it's about server owners vs script kiddies, and when I say script kiddies I mean 12 years old kids that found this thing somewhere in a guide and now does it just for the fun of it.

How how sad can that be, a 12 years old with no skills at all ruining your work of months/years because they read this thing somewhere...

This exploit is extremely easy, but it sure is fixable, so whoever knows a solution, post here.

I'm working in a PHP that's probably gonna sort this thing out, if it works I'll share.

Regards.

TheTester 14.04.2007 14:43

Are you know, that server tell user real account's ID when users logs in? This "fix" - just for stupid newby.

PyroMaker 14.04.2007 14:44

Better than nothing, pal.

reflian 14.04.2007 14:58

pyro if u wanna scramble it with a fast easy script u could just make a query update it in sections combined with a lil more maths in the update that changes everytime, for example u make a query to update the first 50 accounts by id * (10 + $a) + (30000 + $b) where u start with $a as 1 and $b as 1000 or so, and then update next 50 with with $a = $a +1 and $b = $b +1000, or smth alike so it scrambles it with gaps differing per 50 of more than 10 and (pretty much) more than 1000 per section, should piss em off bad enough >:]

alysia 14.04.2007 15:12

just a question

your really sure that the new exploit only works with account_id? and not also possible with char_id?

m4rk 14.04.2007 15:34

when you log in you char the packet you send only contains the character order (I mean, if you select the 4th of your list of chars the packet you send sends the number 4, no the char_id) so I don't think it's possible with char_id

alysia 14.04.2007 18:55

ok but this here can't prevent from anything or? because with a simple packet sniffer or the hlplex (or whatever) tool you can see your own account_id when you login so...

or i'm wrong?

PyroMaker 14.04.2007 19:12

Thing is, most of em already have the code, they just switch the ID's... Most of 'em won't even notice that.

alysia 14.04.2007 19:39

ok now maybe a newbie question... but isn't is already possible to change all account_id and set them like a code befor?

like

85673_01 would be account_id 1

or just

gj432_01 for account_id 1 and that the gj432 stand for every id


this code could be simply randomly changed every server restart

Forcer 14.04.2007 20:09

i hope - no, but account id is integer type.


All times are GMT. The time now is 21:46.