View Single Post
Old 23.01.2006, 07:42   #471
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

Quote:
Originally Posted by vex
Tontor! We need your help! I dont sure but i thnik this is some bug or exploit. My server crushed two times today with following:

Quote:
Server Up Time Sat Jan 21 12:16:32 2006

Current Time : Sat Jan 21 19:30:03 2006

Elapsed Time : 0 days 7 hours 13 minutes 31 seconds
IOBufferPool - 6886

[(1740) 2006/01/21 19:30:03]: =======================
an Access Violation in module l2server3.exe at 001b:005b4e59.
start at 2006/1/21 12:16:28
Write to location 0000003c caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=005b4e59 EFLGS=00010206
EBX=00000000 SS=0023 ESP=6d78fdf0 EBP=6d78fe14
ECX=6d78fe08 DS=0023 ESI=942bda4c FS=003b
EDX=36bbe030 ES=0023 EDI=00000001 GS=0000
Bytes at CS:EIP:
c6 40 3c 01 6a 01 6a 00 54 ff b6 b8 19 00 00 e8
Stack dump:
6d78fdf0: 94dbb5cc 00000002 00000000 6d78fde0 6d78fe4c 6d78fdf0 6d78fe4c 005ac6b0
6d78fe10: ffffffff 6d78fe58 00503181 00000026 74335f00 74335f00 94dbb5cc 00000002
6d78fe30: 74335fe0 00000000 6cfd57a0 00000026 00000000 00000000 6d78fe28 6d78feb8
6d78fe50: 005acdf0 ffffffff 6d78fec4 0050fa78 94dbb5cc 74335ff3 0b68ebcf 94dbb5cc
6d78fe70: 77e4193e 00000001 6d78fedc 00000000 71a912ca 003985f8 003985f8 71aa1a16
6d78fe90: 000003e5 0b68ebcc 003970b8 000003e5 6d78ff78 0000000c 006c0794 31cc906c
6d78feb0: 74335fe0 6d78fe68 6d78fee4 005ad778 ffffffff 6d78fef0 00539866 0b68ebcf
6d78fed0: 94dbb5cc 77e4193e 6d78ff0c 6d78feec 6d78fecc 6d78ff6c 005afaa0 ffffffff
6d78fef0: 6d78ff78 0053be2a 0000000c 00000001 0053cbe6 00000001 0000000c 94dbc8bc
6d78ff10: 00000000 00000000 3fd42640 00000000 00001000 00010000 bffeffff 00000003


ver = Jun 8 2004____15:38:30 thread id=0

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
IconAction <--
User::IconAction()


Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :
This is indeed the what the pet patch fixes, and is apparent the version you are using doesn't have the pet patch or you ignored the warning that a patch has failed and continued anyways. EIP is the location of my hijack which would not be writing to 3c, if it was patched.
Code:
the original that does not check, which eax is null and is not checked. this is your problem.
005B4E59   .  C640 3C 01    MOV BYTE PTR DS:[EAX+3C],1

If it was patched it wouldn't happen.
005B4E59   .- E9 E2165C20   JMP patch.pet_fix

->
20B76540 >  83F8 00         CMP EAX,0
20B76543    74 0D           JE SHORT patch.20B76552
20B76545    3E:C640 3C 01   MOV BYTE PTR DS:[EAX+3C],1
20B7654A    6A 01           PUSH 1
20B7654C    68 5F4E5B00     PUSH 5B4E5F
20B76551    C3              RETN
20B76552    68 B25B4F00     PUSH 4F5BB2
20B76557    C3              RETN
So update your dll, or fix the patch failed problem.
tontor is offline