Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 14.04.2007, 00:04   #1
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default [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.
PyroMaker is offline  
Old 14.04.2007, 00:11   #2
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

default db wont let u edit uid because its on auto increment, so u usually gotta disable that first...
testdude is offline  
Old 14.04.2007, 00:18   #3
Insight
Архивный участник
 
Join Date: Mar 2007
Posts: 24
Default

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
Insight is offline  
Old 14.04.2007, 00:19   #4
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

Quote:
Originally Posted by testdude View Post
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 is offline  
Old 14.04.2007, 00:21   #5
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

Quote:
Originally Posted by Insight View Post
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*
PyroMaker is offline  
Old 14.04.2007, 00:24   #6
Insight
Архивный участник
 
Join Date: Mar 2007
Posts: 24
Default

haha ye, anyway thanks for the share
Insight is offline  
Old 14.04.2007, 01:21   #7
Insight
Архивный участник
 
Join Date: Mar 2007
Posts: 24
Default

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
Insight is offline  
Old 14.04.2007, 02:33   #8
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Remember to update builder_account and user_newbie tables in lin2world too

And if you use Community Board need to update several tables too.
FidoW is offline  
Old 14.04.2007, 02:34   #9
elcapo
Архивный участник
 
Join Date: Mar 2005
Posts: 107
Default

/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.
elcapo is offline  
Old 14.04.2007, 03:32   #10
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by elcapo View Post
/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

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...
FidoW is offline  
Old 14.04.2007, 03:45   #11
nish
Архивный участник
 
Join Date: May 2006
Posts: 237
Default

cool share im gonna try this out thanks guys
nish is offline  
Old 14.04.2007, 03:56   #12
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

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
...
FidoW is offline  
Old 14.04.2007, 04:11   #13
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

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
Rexx is offline  
Old 14.04.2007, 04:17   #14
elcapo
Архивный участник
 
Join Date: Mar 2005
Posts: 107
Default

Quote:
Originally Posted by FidoW View Post
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 ^^
elcapo is offline  
Old 14.04.2007, 06:31   #15
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

Better way is random 7digit id every account
Forcer is offline  
Old 14.04.2007, 13:40   #16
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

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.
PyroMaker is offline  
Old 14.04.2007, 14:43   #17
TheTester
Архивный участник
 
Join Date: Oct 2006
Posts: 112
Default

Are you know, that server tell user real account's ID when users logs in? This "fix" - just for stupid newby.
TheTester is offline  
Old 14.04.2007, 14:44   #18
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

Better than nothing, pal.
PyroMaker is offline  
Old 14.04.2007, 14:58   #19
reflian
Архивный участник
 
Join Date: Apr 2007
Posts: 8
Default

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 >:]
reflian is offline  
Old 14.04.2007, 15:12   #20
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

just a question

your really sure that the new exploit only works with account_id? and not also possible with char_id?
alysia is offline  
Old 14.04.2007, 15:34   #21
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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
m4rk is offline  
Old 14.04.2007, 18:55   #22
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

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?
alysia is offline  
Old 14.04.2007, 19:12   #23
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

Thing is, most of em already have the code, they just switch the ID's... Most of 'em won't even notice that.
PyroMaker is offline  
Old 14.04.2007, 19:39   #24
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

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
alysia is offline  
Old 14.04.2007, 20:09   #25
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 19:55.