New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 600910 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: Bug



Sign in to add a comment

Download Protection: WEBLOC and WEBBOOKMARK files are not checked on Mac OS

Reported by resea...@nightwatchcybersecurity.com, Apr 6 2016

Issue description

This template is ONLY for reporting Download Protection Bypass bugs within
Chrome and is not for requesting a review of sites or binaries identified
as malicious.

VERSION
Chrome Version: 49.0.2623.87 Official Build
Operating System: Mac OS X El Capitan, version 10.11.3

REPRODUCTION CASE
WEBLOC and WEBBOOKMARK files are shortcuts to Internet sites. WEBLOC is opened by both Safari and Chrome, and WEBBOOKMARK is opened by Safari. These are not being checked by Chrome, while .URL is. The behavior should match. In theory it would be possible to put malicious Javascript in these files, plus WEBBOOKMARK can be binary.

Sample file:
https://github.com/sindresorhus/shortcut-url-cli/blob/master/fixture/google.webloc

You can rename this file as WEBBOOKMARK and it will open in Safari.

To get a binary file, drag a Safari bookmark to the Mac Desktop.

We can try to make a patch if covered under Patch Rewards.
 
Labels: -Restrict-View-SecurityTeam Restrict-View-Google
Owner: ----
We did some more testing, and confirmed that Safari does not allow Javascript to be executed from a bookmark.

The best use case we have now is a download URL being stored inside a WEBBOOKMARK file which would trigger an automatic download in Safari - essentially using Safari to bypass Chrome's Safe Browsing. This would need the user to click first on the WEBBOOKMARK file, and then second on the downloaded file, so we are unclear if enough friction is present or not, as far as VRP is concerned.

Here is a POC for WEBBOOKMARK with an intermediate page shown:
https://theowl.xyz/cr/600910/test1.webbookmark

Here is a second POC which just triggers the download:
https://theowl.xyz/cr/600910/test3.webbookmark

This file is downloaded:
https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg

For the WEBLOC case, Chrome also autodownloads the file BUT, since Chrome would open the bookmark, Safe Browsing would kick in if they downloaded an unsafe file.

Comment 4 by vakh@chromium.org, May 6 2016

Labels: SafeBrowsing-Triaged
Owner: vakh@chromium.org
Just wondering if this issue is still being looked at

Comment 6 by vakh@chromium.org, May 27 2016

Status: WontFix (was: New)
Thanks for reporting the issue and the detailed analysis.
Please see my replies to your posts.

> This would need the user to click first on the WEBBOOKMARK file, and then second on the downloaded file

This exploit relies on the user to use a different web browser (Safari, in this case). If the user does that, there's little that Chrome can do beyond that.

> For the WEBLOC case, Chrome also autodownloads the file BUT, since Chrome would open the bookmark, Safe Browsing would kick in if they downloaded an unsafe file.

That's true, which makes this case as WorkingAsIntended.
Being that Safari is always installed on Mac OS just like IE is on Windows, an argument could be made that the exploit will always work.

Comment 8 by vakh@chromium.org, Jun 3 2016

Yes, but that's outside the scope of Chrome's threat model.
Cc: ya...@nightwatchcybersecurity.com

Comment 10 by vakh@chromium.org, Mar 10 2017

Labels: -Restrict-View-Google Restrict-View-SecurityTeam
For all Download Protection VRP bugs: removing label Restrict-View-Google and adding Restrict-View-SecurityTeam instead.
Project Member

Comment 11 by sheriffbot@chromium.org, Mar 11 2017

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