![]() |
|
|
#1 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
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 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 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. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
default db wont let u edit uid because its on auto increment, so u usually gotta disable that first...
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Mar 2007
Posts: 24
|
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
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
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*
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Mar 2007
Posts: 24
|
haha ye, anyway thanks for the share
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Mar 2007
Posts: 24
|
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
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Remember to update builder_account and user_newbie tables in lin2world too
And if you use Community Board need to update several tables too. |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Mar 2005
Posts: 107
|
/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. |
|
|
|
|
#10 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
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... |
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
cool share im gonna try this out thanks guys
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
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 ... |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Jun 2006
Posts: 64
|
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 |
|
|
|
|
#14 | |
|
Архивный участник
Join Date: Mar 2005
Posts: 107
|
Quote:
But, we can use equations ^^ |
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
Better way is random 7digit id every account
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
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. |
|
|
|
|
#17 |
|
Архивный участник
Join Date: Oct 2006
Posts: 112
|
Are you know, that server tell user real account's ID when users logs in? This "fix" - just for stupid newby.
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
Better than nothing, pal.
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Apr 2007
Posts: 8
|
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 >:]
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Apr 2005
Posts: 151
|
just a question
your really sure that the new exploit only works with account_id? and not also possible with char_id? |
|
|
|
|
#21 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
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
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Apr 2005
Posts: 151
|
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? |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
Thing is, most of em already have the code, they just switch the ID's... Most of 'em won't even notice that.
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Apr 2005
Posts: 151
|
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 |
|
|
|
|
#25 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
i hope - no, but account id is integer type.
|
|
|
|
|