![]() |
Is there any error/system message in server or cached console _exacly_ after hijaked char enter in world?
Someone, please PM me method to reproduce exploit, i have some idea. |
I wasn't even talking to you. Why would you get hurt by me venting? Read posts that our famous developers made whose posts if you do some search here you'll see them begging to know shit. And now, they act like they are gods. " oh i dunno maybe ill fix it maybe i wont, only i deserve to have a server", "oh maybe ill share maybe i wont", "oh i have it fixed on my server", "oh come try my server".
Those type of comments sicken me. I have been in PP for a real long time. I don't need to mention names, but you should know which group of ppl i was venting on if you look the posts up in this thread. I have seen you share enough. I have seen most of your posts since when you joined this community. You have my respect. Just don't change... Anyways, if anyone has the brain and heart to contribute, you are welcome. Please do contact us. I do not compete with any servers, i am not in a race. But this time it is a race to save our own asses. Please do come on PP irc. I have no problem in buying the fix if you have one / helping making the fix and then sharing to this community if needed. |
I have managed to reproduce the hack myself on my dev server.
The console will log this when you do it: Quote:
|
How about this?
(12:36) · &NeosinneR · when player connects to l2authd in db.. (12:36) · &NeosinneR · it sets flag "online = 1" (12:36) · &NeosinneR · if they lgo off = 0 (12:36) · &NeosinneR · how about a stored proc which checks.. (12:37) · &NeosinneR · the flag "online" (12:37) · &NeosinneR · if online <> 1, 05 kick char packet through cached. (12:37) · &NeosinneR · so if someone else tries to login another character (12:37) · &NeosinneR · through their account... bam. (12:38) · &NeosinneR · thats just idea o_o An idea someone gave. Researching on this if it works. |
so, if
Quote:
It will result like this: when cheater enter world with hijacked char it wil be kicked after 0.2-1 sec. I know its dirty workaround not a fix but should work. correct me if i wrong. |
Theorytically should work, yah that's around what the idea is too.
|
To test it i need to reproduce exploit. Again, please PM me how it can be reproduced.
|
Sent you a pm.
|
ok so if im getting this right... if i see this
Code:
04/09/2007 23:25:xx.xx2, [.\DBSocket.cpp][4792] account not found... account_id(2562)what im trying to get at is with that info how do you catch the person doing it i have also seen this error Code:
[.\DBSocket.cpp][17118]account map error. erase and continue. [15336](1127)(?) |
It's the person being exploited's id. Dunno, how to catch, only thinking on how to prevent right now.
|
Nope, my idea is useless. No errors if exploit done right, so we cant catch it by logs. SQL workaround should help but to really fix this i think only hexing helps.
|
Well, workaraound i said in this thread works. However, im not 100% sure if there's a way to work around that sql workaround -_-
Anyways, hint's hauthd blocks all of this same for la2guard and bakedice's thing. Chinese been using it and dunno.. However imo, blocking isnt what needs to be done. Fixing is what needs to be done. I can't seem to trace that call to authd. But let's see if my brain starts working. |
Quote:
|
Well his hauthd blocks client from getting injected. Without his client dlls cannot start client. In a sense it blocks from hlapex and such packet explorers itself. So, it's blocking. Not fixing, i agree.
If could find the correct function - though im sure requestlogin or it has to be around that. However, there has to be a communication with authd as mcrabben7 said. Btw, all of this might be fixed _if_ we can use a proxy exec to communicate with client <-> authd <-> server. So, again my topic of c4 authd comes in my mind. NCsoft uses a GateD to communicate. So, Client -> GateD -> AuthD -> L2server, and vice versa. So, as i was saying on sec-soc irc, im beginning to strongly believe the inspectors.*, gated was not leaked or didnt reach our hands because nc wanted us to perish. |
Well, for starters, changing auth ports will help. Will keep the average and majority google search cheaters. As in. ppl who just searches the packet explorers off google and clicks some buttons. However, the issue will remain and it can get very severe if someone with half the brain who knows how to change ports knows about this.
|
Quote:
|
Hows that possible? I mean.. if they can't make hlapex work, how'd they do that?
|
Quote:
Hint told what this backdoor existed in all l2 servers anytime. For protect need check and fix or lin_GetCharByAccountId or work with char packet (where check login status and etc). But it only my theory (i'm protected). |
Guys, sorry to interupt, but when someone's posting too much information about this exploit, feel free to PM me. I'll remove the data.
|
Quote:
also, you dont need hlapex to make this work, anyone with even the smallest programming knowledge could make their own dll, and someone will sooner or later bypass who ever has only their client protected. |
Some work recently was shared to be honest.
|
Quote:
+1 to that |
Quote:
I have stuff i don't share because of the leechers so i understand what you posted but I don't sell it neither. |
not everyone is a leecher here, just because they dont post anything.
honestly, tell me what there is to leech from pp these days? i could share lots of things, but why should i? last time i asked for the amped which fixed the crash exploit no one of those so called "distributors" wanted to help people like mcrabben who only brag about it that they have it etc. i know cypher didnt want to have it shared, so im not gonna blame you for it mcrabben... but in the end it still true what i say. it is true though, i was sad when the retail C4 files got leaked. people who dont event want to put time in lineage have shit servers running all over the place just because they can start it up.... we put like 15 hours per day into our l2 server, and if you see those kids spam voting their crap server to nr1 in the gamesites 200 listing... its just a shame. i myself am not a c++ coder, and thats the only reason why i even asked for amped. you dont have to know who i am, since it doesnt matter it doesnt mean because some ppl pretend they are noobs that the necceseraly have to be noobs. last time my mate posted some things on pp he got banned. what did he post? a simple php script to verify AI handlers. ofcourse those who have something do want to share it, but is it worth to be shared on pp like it is today? |
This community shouldn't exist if ppl are worried about what someone else can get out of your work. Ppl sells my fuckign c5 item share 5 monthes back naming it c5.. and modding some..
if ppl are stupid enough to fall for that, sure.. it's their money.. let them get fucked.. same goes for players. if they are willing to spend money and give these 5 year old kiddies thousands of dollars, sure... Besides, 100% perfect c4 server ain't a big deal now.. servers that doesn't have c5 soon will prolly perish. |
Hello,
(12:36) · &NeosinneR · when player connects to l2authd in db.. (12:36) · &NeosinneR · it sets flag "online = 1" (12:36) · &NeosinneR · if they lgo off = 0 (12:36) · &NeosinneR · how about a stored proc which checks.. (12:37) · &NeosinneR · the flag "online" (12:37) · &NeosinneR · if online <> 1, 05 kick char packet through cached. (12:37) · &NeosinneR · so if someone else tries to login another character (12:37) · &NeosinneR · through their account... bam. The above works 100%. That will kick them within 0.2-1 sec of logging in with the hacked chars. Maybe some one wanna make script for this.. |
Quote:
|
Quote:
in reguards to your little auth idea neo... its not hard to do but there are many more effective and tbh easier ways to stop this exploit... |
creating scripts to check the database is as easy as baking cookies.
if someone has "the" solution on how to block it then we can code it in minutes and share it.(database wise) |
My fix
I can't bye some *.dll for my server to prevent this bug completly, and i do that:
1. Add custom field in lin2db (in my db it's "online") with INT value. 2. I use hAuthd by Hint and set online = 1 when user logged on (or you can use Authd with modded query Code:
"SELECT user_data FROM user_data WITH (nolock) WHERE uid = %d"Code:
"UPDATE user_account SET online = 1 WHERE uid = %d"3. Code:
ALTER PROCEDURE [dbo].[lin_GetUnreadMailCount]Code:
<? |
Quote:
I didn't share it with everyone because of Cypher's request, nothing more. |
Quote:
|
A nice way to fix this 90% is to implement an array in memory where you store account names and account IDs. When someone tries to login, check that the ID and Name are both correct. If they are not, log it as an exploit and kick the player.
Of course, this requires a coder and is probably beyond simple SQL, however, it might be possible to add a check for this into the stored procedures for logging in. Only thing missing from this fix is some sort of unique session key that can validate that the user has a valid session with authd, and isn't simply trying to exploit an account. |
what about setting a flag at login when checking for the other flags. (ap_Gstat)
then when loading the character, check for the flag. Proc has to be one that fires even when exploiter loads account. Maybe (lin_CharLogin)? if flag not present... kick. at end of proc, clear the flag. Just thinking out loud here... |
made same way as said Le][u$. Just edit char_login and char_logout+added new field+script in l2auth.
php was stupid, so solution is to use wget --spider to send kick packet |
does char_logout fire on kick?
|
Quote:
All the other posts have been vague references or theory. Instead of tearing someone's idea down, why not just offer your solution as an alternative and site reasons why your way is better. I mean, if I'm going to go out of my way to share something with you and you just tear it down and say it's stupid, why would I share anything again? You'll still need to launch wget much in the same way you'd launch the php compiler, and you'll still need the php with the kick code in it... Thanks Le][u$ for contributing. Reirus, thanks for the alternative. |
Those aren't really fixes. If the flag is on they can STILL inject ANY online account. That's NOT really a fix.
|
Correct and agreed, that isn't a fix. That is only a way around that works half as good.
There is a dll being made, however, it is up to the creator if it will be shared. As much as i would like to see it be shared, if the creator decides for it to be close quarter and among "sec-soc" community only, so it will be. Don't ask what is sec-soc. Anyways, for all those that have helped me, i'll be sure to repay the debt, thanks. I don't have anything useful for this topic anymore. -eof- |
Quote:
But right now we're hemorrhaging, we're just trying to stop the bleeding. Not everyone can write code to attach to a process and inject itself. I wouldn't know where to start with that, but I've always shared everything I've made, it might not be much and it might not be great, but it's what I have. If I could I'd rewrite the entire AuthD and add features that I feel should have been there from the start. But I'm not an experienced C programmer. I can hold my own in VB, which from what I hear is very similar to C#. But I'm digressing. Anyway, true, these aren't fixes, but it's better than nothing atm. =/ |
| All times are GMT. The time now is 15:24. |