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: | PicoWebServer Remote Unicode Stack Overflow |
|---|---|
| Date: | Sat, 28 May 2005 18:13:03 +0200 |
Vendor: Newmad Technologies (http://www.newmad.se) Vendor Status: Contacted Product: PicoWebServer Affected Version: 1.0
Platform: Microsoft Windows CE / PocketPC Processor Type: ARM
Vulnerability: Missing user-input length check
Risk: High (Remote code execution)
Discovery: 23. May 2005
Impact: A remote attacker can gain full access to the device
or crash the application
--------------------------------------------------------------------------
Background: -----------
PicoWebServer is a free "light weight" HTTP web server for PocketPCs running the Windows CE operating system. By default, the PicoWebServer application is configured to listen for incoming connections on TCP port 80.
Bug Description: ----------------
Technical Description / Proof of Concept: -----------------------------------------
An attacker gains control over the Program Counter (PC) by supplying an outsized HTTP GET request.
1.) The maximum number of bytes that an attacker can supply is limited by a loop checking for the occurence of a "0D 0A 0D 0A" byte sequence.
get_more_data_from_attacker: ;snip
GET /xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[...snip...]\x0D\x0A\x0D\x0A
2.) This buffer is then converted to unicode and passed to an unchecked swprintf() call, where the stack overflow occurs:
[127.0.0.1 - 2005/5/12@12:30:11] "GET /"
.text:000137D0 ADD SP, SP, R12
.text:000137D4 LDMFD SP!, {R4-R9,PC}Registers R4 to R9 and PC are under control of the attacker.
stack:
--------------------------------------------------------------------------
Dennis Elser, 28.05.2005
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Microsoft Internet Explorer - Crash on to many stack overflows (05/28/2005), Benjamin Tobias Franz |
|---|---|
| Next by Date: | Format String Vulnerability In Peercast 0.1211 And Earlier, GulfTech Security Research |
| Previous by Thread: | Microsoft Internet Explorer - Crash on to many stack overflows (05/28/2005), Benjamin Tobias Franz |
| Next by Thread: | Format String Vulnerability In Peercast 0.1211 And Earlier, GulfTech Security Research |
| Indexes: | [Date] [Thread] [Top] [All Lists] |