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 Exploits-HackingTools
[Top] [All Lists]

[NEWS] Safari XMLHttpRequest HTTP Header Injection

Subject: [NEWS] Safari XMLHttpRequest HTTP Header Injection
Date: 26 Jun 2007 15:40:51 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  Safari XMLHttpRequest HTTP Header Injection
------------------------------------------------------------------------


SUMMARY

The XMLHttpRequest object is intended to enforce a same-origin security 
policy, and to prevent the injection of HTTP headers that can be used 
maliciously. Unpatched releases of Safari on both Windows and MacOS X 
allow JavaScript to bypass these restrictions. It is possible to insert 
arbitrary HTTP headers into the request, including the Host header.

Apple has released APPLE-SA-2007-06-22 Security Update 2007-006, and 
APPLE-SA-2007-06-22 Safari 3 Beta Update 3.0.2 which address this issue.

DETAILS

It is possible to bypass the security restrictions of the XMLHttpRequest 
setRequestHeader function to include arbitrary headers by specifying 
values containing newline characters. For example, a request such as this 
is treated as valid:
xmlhttp.setRequestHeader('Foo', 'baa\nHost: test\n');

and results in:
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
Accept-Language: en
Foo: baa
Host: test

Impact:
This allows a malicious site to cause the user's browser to attack other 
sites that are virtual servers on the same IP address (eg. via SQL 
injection or cross-site scripting). Potentially any header can be  
injected. If the user is accessing the web via a proxy then potentially 
any site can be attacked.

Timeline:
14/06/2007 - Apple informed of the vulnerability
22/06/2007 - Patch released
25/06/2007 - Confirmed that the fix addresses the issue
25/06/2007 - Westpoint advisory release

CVE Information:
 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2401> 
CVE-2007-2401


ADDITIONAL INFORMATION

The information has been provided by  <mailto:rich@westpoint.ltd.uk> 
Richard Moore.
The original article can be found at:  
<http://www.westpoint.ltd.uk/advisories/wp-07-0002.txt> 
http://www.westpoint.ltd.uk/advisories/wp-07-0002.txt



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [NEWS] Safari XMLHttpRequest HTTP Header Injection, SecuriTeam <=