WebKit Empty Hostname URI Handling Cross Site Scripting Vulnerability

BID:40717

Info

WebKit Empty Hostname URI Handling Cross Site Scripting Vulnerability

Bugtraq ID: 40717
Class: Input Validation Error
CVE: CVE-2010-0544
Remote: Yes
Local: No
Published: Jun 07 2010 12:00AM
Updated: Mar 19 2015 08:39AM
Credit: Michal Zalewski of Google, Inc.
Vulnerable: WebKit Open Source Project WebKit r52833
WebKit Open Source Project WebKit r52401
WebKit Open Source Project WebKit r51295
WebKit Open Source Project WebKit r38566
WebKit Open Source Project WebKit 0
Apple Safari 4.0.5 for Windows
Apple Safari 4.0.5
Apple Safari 4.0.4 for Windows
Apple Safari 4.0.4
Apple Safari 4.0.3 for Windows
Apple Safari 4.0.3
Apple Safari 4.0.2 for Windows
Apple Safari 4.0.2
Apple Safari 4.0.1
Apple Safari 4 for Windows
Apple Safari 4 Beta
Apple Safari 4
Apple iTunes 9.0.2
Apple iTunes 9.0.1 .8
Apple iTunes 9.0.1
Apple iTunes 9.0
Apple iTunes 9.1
Apple iTunes 8.2
Apple iTunes 8.1
Apple iTunes 8.0.2.20
Apple iTunes 8.0
Apple iPod Touch 3.1.3
Apple iPod Touch 3.1.2
Apple iPod Touch 3.1.1
Apple iPod Touch 2.2.1
Apple iPod Touch 2.0.2
Apple iPod Touch 2.0.1
Apple iPod Touch 3.0
Apple iPod Touch 2.2
Apple iPod Touch 2.1
Apple iPod Touch 2.0
Apple iPhone 3.1.3
Apple iPhone 3.1.2
Apple iPhone 3.0.1
Apple iPhone 2.2.1
Apple iPhone 2.0.2
Apple iPhone 2.0.1
Apple iPhone 3.1
Apple iPhone 3.0
Apple iPhone 2.2
Apple iPhone 2.1
Apple iPhone 2.0
Apple iPad 3.2.1
Apple iPad 3.2.2
Apple iPad 3.2
Apple iPad 0
Apple iOS 4.0.2
Apple iOS 4.0.1
Apple iOS 3.2.2
Apple iOS 3.2.1
Apple iOS 4.2 beta
Apple iOS 4.1
Apple iOS 4
Apple iOS 3.2
Not Vulnerable: Apple Safari 5.0 for Windows
Apple Safari 5.0
Apple Safari 4.1
Apple iTunes 9.2
Apple iOS 4.2
Apple iOS 4

Discussion

WebKit Empty Hostname URI Handling Cross Site Scripting Vulnerability

WebKit is prone to a cross-site scripting vulnerability because it fails to adequately sanitize user-supplied input.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of a targeted site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

NOTE: This issue was previously covered in BID 40620 (Apple Safari Prior to 5.0 and 4.1 Multiple Security Vulnerabilities) but has been given its own record to better document it.

Exploit / POC

WebKit Empty Hostname URI Handling Cross Site Scripting Vulnerability

Attackers can exploit this issue by enticing an unsuspecting user into following a malicious URI.

Solution / Fix

WebKit Empty Hostname URI Handling Cross Site Scripting Vulnerability

Solution:
Vendor fixes are available. Please see the referenced advisory for details.


Apple Safari 4

Apple Safari 4 for Windows

Apple iTunes 9.1

Apple Safari 4.0.1

Apple Safari 4.0.2 for Windows

Apple Safari 4.0.2

Apple Safari 4.0.3 for Windows

Apple Safari 4.0.3

Apple Safari 4.0.4 for Windows

Apple Safari 4.0.4

Apple Safari 4.0.5 for Windows

Apple Safari 4.0.5

References

WebKit Empty Hostname URI Handling Cross Site Scripting Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report