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.




Network Security Web-App-Sec
[Top] [All Lists]

Re: Is this exploitable?..

Subject: Re: Is this exploitable?..
Date: Fri, 17 Dec 2004 09:09:19 +0100
Hi,

On Thu, Dec 16, 2004 at 12:14:11PM -0800, Benjamin Livshits wrote:
What worries me is a scenario in which parts of the HTTP request are
somehow malicious. I.e. as is the case for XSS, if responseString is set
to contain some user-supplied JavaScript, it may lead to problems if
printed back to the browser verbatim.

that's why

resp.setContentType("message/http");

Standard-conforming browsers will not interpret JavaScript (or other active
content) inside "message/http" bodies.

Of course, certain broken browsers ignore the ContentType header and
instead try to guess what the content type "really" is. That's a browser
bug, though, and even if it was exploitable you couldn't blame it on
the server.

Bye,
        Peter
-- 
Peter Conrad                        Tel: +49 6102 / 80 99 072
[ t]ivano Software GmbH             Fax: +49 6102 / 80 99 071
Bahnhofstr. 18                      http://www.tivano.de/
63263 Neu-Isenburg

Germany

<Prev in Thread] Current Thread [Next in Thread>