New issue
Advanced search Search tips

Issue 619332 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: Bug-Security



Sign in to add a comment

Security: URL spoofing with using the data URI scheme

Reported by chromium...@gmail.com, Jun 11 2016

Issue description

VERSION
Chrome Version: 53.0.2765.0 canary
Operating System: Windows 7

REPRODUCTION CASE
The parser that handles data URI schemes does not consider the 'hash' symbol which could lead to tricking a victim into thinking they're in a trusted website.

new URL('data:#;,test'); This is a valid data URL.

new URL('data:#'); And this is an invalid URL.

So let's trick the browser into forming the second URL using this flaw.

PoC: 

<a href="data:#q;,<b>qab</b><script>location.hash=''</script>">click</a>


Actual results:
We end up in 'data:#' that contains the document from the initial data: url.

Expected results:
The parser should not allow the hash symbol before the ',' character.

 
testcase.html
825 bytes View Download
Cc: mea...@chromium.org
Status: WontFix (was: Unconfirmed)
This doesn't repro for me on 53.0.2765.0 on linux.  I end up with unparsed HTML in the content area.
Project Member

Comment 2 by sheriffbot@chromium.org, Sep 20 2016

Labels: -Restrict-View-SecurityTeam
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 3 by sheriffbot@chromium.org, Oct 1 2016

This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 4 by sheriffbot@chromium.org, Oct 2 2016

This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: allpublic

Sign in to add a comment