Skip to content
Access control Disclosed report Advanced CVE-2016-5295

moz maintenance service: Ability to read arbitrary files as SYSTEM

The Mozilla Maintenance Service, which runs as SYSTEM, could be tricked into copying protected Windows files such as the SAM database. An attacker could read arbitrary files with SYSTEM privileges if the Volume Snapshot Service is enabled and a restore point exists.

Holger Fuhrmannek Follow

Originally disclosed on Mozilla

  • Fixed in 5 months
  • Paid in 7 months
  • Disclosed after 5 months
Text
I noticed the problem is known (Bug 850492) but wasn't fixed because the poc was not working. I have developed a poc which relies on the Volume Snapshot Service of windows to copy locked protected files. I tested the poc with the moz maintenance service at C:\Program Files (x86)\Mozilla Maintenance Service and win7 64 bit. 
If the Volume Snapshot Service is enabled and already a restore point was created (!) the poc is able to copy the C:\Windows\system32\config\SAM file and other protected files.

The original report as published on Mozilla's Bugzilla, by Holger Fuhrmannek. 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.

How it worked

Root cause

Likely the maintenance service accepts file paths from a lower-privileged user and uses the Volume Snapshot Service to copy locked files without properly restricting which files can be read.

Impact

An attacker could read arbitrary protected files, including the SAM database, with SYSTEM privileges, but only if the Volume Snapshot Service is enabled and a restore point already exists.

What the attacker needed

Volume Snapshot Service enabled; A restore point already created; Windows 7 64-bit (tested)

How it was found

  1. Ensure the Volume Snapshot Service is enabled and a restore point has been created.
  2. Run the proof-of-concept against the Mozilla Maintenance Service installed at its default path on Windows 7 64-bit.
  3. The service copies the protected SAM file and other locked files.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

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

The Mozilla Maintenance Service is a background program that runs with the highest Windows permissions (SYSTEM) to update Firefox. The researcher found a way to make it copy files that are normally locked and protected, like the file that stores Windows passwords. This means someone could read sensitive system files that they should not be able to access.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Holger Fuhrmannek

View all

32 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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.