CRITICAL (0-day?): Possible Same Origin Policy bypass (file:// access)
Mozilla
Originally disclosed on Mozilla
- Fixed in 3 days
- Paid in 5 days
- Disclosed after 3 days
Created attachment 8643666 ACTIVE EXPLOIT Will send your data to Ukraine if run
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0 Build ID: 20150629114049
Steps to reproduce:
Summary:
I was visiting a news website when some ad script ran and injected an iframe that used PDF.JS's viewer.js to access files on my system (Possible Same Origin Policy bypass?). It triggered an error in view.js that I could view in the Firefox Developer Tools:
"An error occurred while loading the PDF. PDF.js v1.1.24 (build: f6a8110) Message: undefined" viewer.js:6023:5
The exploit script has been attached!
Steps to reproduce (at the time of writing):
- Visited: http://www.themoscowtimes.com/news/article/duma-considers-anti-terrorism-bill-for-online-payments/492780.html
- 'Ad' was loaded in the background: http://185.86.77.48/ads.php
- Which loaded: http://185.86.77.48/counter.php (File has been attached to report)
- Counter.php contained script which created an iframe and started accessing system files (/.ssh/id_rsa, known_hosts etc.), sending the contents in a POST payload to: http://185.86.77.48/banner.php (with some GET parameters). It looks like the script is also configured to exploit the same bug on Windows so different files may be accessed with that OS. The files that are targeted can be found in plain-text in the script.
System details: Browser: Firefox 39.0, Mozilla Firefox for Ubuntu canonical - 1.0 OS: Ubuntu 15.04
Actual results:
NA
Expected results:
NA
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 critical-severity business logic bug in PDF Viewer. Mozilla made it public on 8 August 2015.
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.