Skip to content
Business logic Disclosed report CVE-2016-5265

Same origin policy bypass in local document/Universal xss

Abdulrahman Alqabandi Follow

Originally disclosed on Mozilla

  • Fixed in 21 days
  • Paid in 28 days
  • Disclosed after 21 days
Text
Created attachment 8759911
bypass.zip

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

Steps to reproduce:

This only works on local HTML files that have been extracted into a folder, a specially crafted .URL needs to be in the same folder as the locally executed HTML document. User interaction is required (a click)

I have attached a zip file which contains the PoC code, please extract both files into the same folder and open 'PoC.html' _locally_

Additionally, you should create a new file (and folder) located at 'C:/secret/secret.txt' 

Open the PoC file and you should see two anchor tag, one uses the .url bypass another doesnt. This is to clearly show there is a bypass.

On top of that, if we change the target file to a folder like 'C:/secret/' we will be able to read the list of files.

Works on FF-ESR 45.1.1 && Nightly 49.0a1 (2016-06-03)

I have not played with this much yet, so I'm not sure if more dangerous bypasses or other bugs could be performed using the .URL redirects. Will test more.


Actual results:

Using a .URL file as a redirector, it seems like it breaks the SOP protection. 


Expected results:

I believe local HTML files are only allowed to read files within the same folder the html file has been opened in. What ever protection mechanism exists needs to keep the .url file in mind and block the ability to read arbitrary files.

The original report as published on Mozilla's Bugzilla, by Abdulrahman Alqabandi. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

What is known

A medium-severity business logic bug in Networking: File. Mozilla made it public on 24 June 2016 as CVE-2016-5265.

About Business logic

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

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

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Abdulrahman Alqabandi

View all

33 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.