Arbitrary file overwrite with updater and moz maintenance service using callback application path parameter
Originally disclosed on Mozilla
- Fixed in 45 days
- Paid in 3 months
- Disclosed after 45 days
Created attachment 8717450
ovr.poc.zip
During an update using the callback application path parameter a copy of an user specified file (the callback file) is made. For example for <callback-file> a <callback-file>.moz-callback is created. If the target of the copy is prepared with a locked hardlink an arbitrary file is replaced.
The poc use the CreateHardlink tool from https://github.com/google/symboliclink-testing-tools to create the hardlink without the need of write access to the target file.
I have tested the poc with win7 and ff 47 nightly installed to C:\Program Files (x86)\Nightly\:
To reproduce
- download poc and extract the files
- download http://releases.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-47.0a1.en-US.win32.complete.mar and place the file to <pocdir>/updatework/update.mar
- execute poc.rb
The poc replace the content of the firefox.exe with the content of the cmd.exe.
This can be easily used to elevate privileges.
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 security bug in Application Update. Mozilla made it public on 25 March 2016 as CVE-2016-5253.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.