Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Vulnerability Development: newline injection in multipart/form-data

newline injection in multipart/form-data

From: Michal Zalewski <lcamtuf_at_dione.ids.pl>
Date: Thu, 15 Mar 2007 13:25:40 +0100 (CET)

There's a funny but alone not very useful vulnerability in how browsers
handle names of multipart/form-data input fields. This affects MSIE and
Firefox, maybe others. You can use Javascript to set 'name' parameter of a
form field to a value that contains double quotes, newline characters,
etc, and this will be rendered as-is in the resulting request:

some_field.name = 'foo"\r\nEvil-header: baz="'

...renders it as:

Content-Disposition: form-data; name="foo"
Evil-header: baz=""; filename=""

The impact is limited by the fact you're bound by Content-Length of the
entire POST request, and to a lesser extent, by (often predictable) MIME
boundaries. As such, without an additional weakness in the proxy or WWW
server, it's probably not likely to cause that much of a trouble. Still,
maybe some readers will come up with something fancy?

/mz
Received on Mar 15 2007

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos