New issue
Advanced search Search tips

Issue 808428 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 730121
Owner: ----
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: Bug-Security



Sign in to add a comment

Security: Chrome is missing download protection for svg file type

Reported by p.upadhy...@gmail.com, Feb 2 2018

Issue description

Steps to reproduce:
Upload an svg file to attacker control site with javascript in it.

Victim downloads the svg file using Chrome browser. Victim chooses to open the file with chrome (if chrome is default browser, OS will show Chrome as a default program) and underlying script in svg file gets executed.

I checked the safe browsing- download file types list posted and I don't see any protection for SVG file type. 
Please let me know in case of any questions.
 
Components: UI>Browser>Downloads
Labels: Needs-Feedback
Running script in a downloaded SVG file does not represent a security vulnerability. Script runs in the sandbox and (unlike it some browsers), locally loaded scripts have no special access to the rest of the system.

You can also download a HTML file containing script and, when opened, the script will run. Can you elaborate on why you believe SVG should be treated in a special way?


Mergedinto: 730121
Status: Duplicate (was: Unconfirmed)
I ran the following scenario -
This svg file is on my desktop (Windows OS) which is available at C:\Users\<username>\Desktop and line no 2 is pointing to a valid file on my C drive under C://POC/cert.cert.
Open this svg file in chrome and it downloads the msi file without even changing the URL to the target installer file. 

<svg xmlns="http://www.w3.org/2000/svg">
<script>alert(window.location.href="/../../../POC/cert.cert")</script>
<script>alert(window.location.href="https://dev.mysql.com/get/Downloads/MySQLInstaller/mysql-installer-community-8.0.3.0-rc.msi")</script>
</svg>
Project Member

Comment 5 by sheriffbot@chromium.org, May 12 2018

Labels: -Restrict-View-SecurityTeam allpublic
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

Sign in to add a comment