Skip to content
Access control Disclosed report Intermediate CVE-2016-4178

Flash “local-with-filesystem” Bypass in navigateToURL

Flash's local-with-filesystem policy could be bypassed using the navigateToURL function with a crafted path, allowing an attacker to open local files and directories. This only worked in Internet Explorer.

Soroush Dalili Follow

Originally disclosed on HackerOne

  • Fixed in 41 days
  • Paid in 41 days
  • Disclosed after 3.3 years

This issue has been patched by Adobe: https://helpx.adobe.com/security/products/flash-player/apsb16-25.html (CVE-2016-4178)

Flash “local-with-filesystem” policy can be bypassed using the “navigateToURL” function.

It is not possible to target the local files using a Flash file in a website using normal methods such as the “file://” protocol or the “\localhost\c$” path due to the Flash “local-with-filesystem” security policy.

However, a method was found that could bypass this protection. For instance the following payload could be used to open the Windows directory in the C drive: \.\localhost/c:\windows\

Example (should be tested in IE): http://0me.me/demo/xss/flash/link_protocol_test.swf?input=\.\localhost/c:\windows\

It was possible to open local files and directories in an Iframe as well. The following old PoC page can be used for this purpose: http://0me.me/demo/xss/flash/iframe_link_protocol_test.html The “link_protocol_test.swf?input=\.\localhost/c:\windows\starter.xml” payload can be used as an example in the “Custom Address” field of this HTML page.

Note: This will only work in Internet Explorer as other browsers do not allow Flash to access local filesystem.

Note: Other vectors: "\./C:" or "\./\.\..\C:" also reported to Adobe afterwards. These payloads were discovered by Matthew Evans from NCC Group.

History before reporting this issue: Similar issues were reported to Adobe a few years ago by a number of security researchers after this blog post was published by me: https://soroush.secproject.com/blog/2013/10/catch-up-on-flash-xss-exploitation-part-2-navigatetourl-and-jar-protocol/

The original report as published on HackerOne, by irsdl. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the navigateToURL function did not properly validate or normalise the URL scheme and path, allowing a crafted path to bypass the local-with-filesystem restriction.

Impact

An attacker could open local files and directories, but only in Internet Explorer; other browsers blocked Flash from accessing the local filesystem.

What the attacker needed

Victim uses Internet Explorer; Flash Player installed; victim opens a malicious Flash file

The fix

Adobe patched the issue.

How it was found

  1. Create a Flash file that calls navigateToURL with a crafted input parameter.
  2. Use a path such as a UNC-style path pointing to localhost and a local drive.
  3. Open the Flash file in Internet Explorer to trigger the bypass.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Flash had a security rule that stopped a Flash file on a website from reading files on your computer. The researcher found a special way of writing a file path that tricked Flash into ignoring that rule, but only when using Internet Explorer. This meant a malicious Flash file could open local files or folders.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Soroush Dalili

View all

2 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.