|
|||||||||||
|
WebDAV Exploit Lab
From: Jeremy Junginger <jj(at)act.com>
Date: Fri Mar 28 2003 - 10:42:05 EST
In playing with the new rs_iis.c (http://www.rs-labs.com/) proof of concept exploit in the lab. In order to better understand how the exploit works, I've set up a scenario with an attacking machine located on the same logical segment as a web server with OllyDbg installed. I've noticed from the documentation that the RET will likely have to change for the exploit to work, and have read that if you you brute force the RET, while having a debugger attached to the inetinfo process on the server, you will see the correct RET when the IIS service crashes. So, what I've done is used a perl script to run the RET with every possible combination for from 0x0000 to 0xffff against a web server with OllyDbg attached to the inetinfo process. In order to save some time, I have the script checking to make sure IIS has not crashed in between RET address attempts (via simple TCP SYN) so it doesn't try to brute force a dead service. I'm not sure if this step is necessary, as I've noticed Win2k will restart the service when it is terminated unexpectedly, but what the heck. AFAIK, here's what should happen when the exploit is run. Please feel free to interject your thoughts:
I'm finding that when a couple of interesting sticking points:
"Server is vulnerable but the exploit failed! Change RET value (e.g.
3) An interesting note is that in OllyDbg, it says that the process was terminated with exit code 0. I also see in the event log on the server that the IISADMIN and WWW services have terminated unexpectedly, and that IIS was stopped and restarted by NT AUTHORITY\SYSTEM (to recover the web service).
4) So now I'm to the point where I should be able to find the
If you guys have experience in debugging a web app like this and feel like helping out, or have a link to a good tutorial, I would really appreciate the info. Thanks, Jeremy Received on Fri Mar 28 11:27:54 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:38 EDT |
||||||||||
|
|||||||||||