Write to arbitrary file with updater and moz maintenance service using updater.log hardlink
Originally disclosed on Mozilla
- Fixed in 4 months
- Paid in 7 months
- Disclosed after 4 months
Created attachment 8717458
write.poc.zip
During an update a updater.log file is created in the update source directory. If possible the new log data are added to an existing log file. If the file is actually a hardlink the new data are added to an arbitrary file.
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
- execute poc.rb
The poc adds amongst other data a user controlled new line to the updater.ini in the firefox directory.
This might be used to elevate privileges by overwriting a script or ini file which has a permissive parser which subsequently gets executed/parsed by a privileged process.
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 security bug in Application Update. Mozilla made it public on 14 June 2016 as CVE-2016-5293.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.