Arbitrary File Read Vulnerability via Form Autocomplete
Originally disclosed on Mozilla
- Fixed in 44 days
- Paid in 46 days
- Disclosed after 44 days
Created attachment 8535327
auto.html
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
Build ID: 20141201171754
Steps to reproduce:
- Create a <input type="text"> field.
- Make sure, that the field's autocompletion will suggest "/etc/passwd" when triggered.
- Open the completion dropdown menu (which should solely suggest "/etc/passwd") by clicking in the text box or pressing the appropriate keys.
- With the menu still open, change the input type from "text" to "file".
- Although the input type changed, the completion menu does not dissapear and you will still be able to accept the filename as an autocompletion value.
- After completion the file picker has changed its value to "/etc/passwd" and will thus immediately make the file contents available to the DOM.
Confirmed on 3.17.4-1-ARCH x86_64 GNU/Linux.
Actual results:
If you try to change the value of a <input> field with type=file, you will get a security violation error. This restriction does not apply to chrome UI elements, though. The autocompletion box can therefore be abused the change otherwise inaccessible values and bypass the file upload dialogue.
The attached proof of concept outlines a possible real-life scenario, which tries to minimize the necessary user interactions to a simple double click. (Just for the record, there should be several ways to conceal the whole autocompletion process even more, making the attack much less obvious than depicted here, but probably resulting in a less stable and bloated PoC.)
Expected results:
The attempt of autocompleting a file upload form field should trigger a security error.
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 high-severity info disclosure bug in Autocomplete. Mozilla made it public on 25 January 2015 as CVE-2015-0822.
About Info disclosure
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.