Skip to content
Misconfiguration Disclosed report Beginner CVE-2026-8957

Possibilty to bypass Group Policy enterprise settings by using invalid policy.json

An invalid user-controlled policies.json file in a user-writable Firefox installation directory causes the Enterprise Policies service to become inactive, disabling all Group Policy settings. An attacker could bypass enterprise restrictions, such as installing disallowed extensions.

Mateusz Dobrzyński Follow

Originally disclosed on Mozilla

  • Fixed in 7 days
  • Paid in 22 days
  • Disclosed after 7 days
Text
Steps to reproduce:

I found a bug allowing user to bypass enterprise settings deployed on Windows with Group Policy by using invalid, user controllable policy.json.

Requirements to reproduce:
- Have group policy for firefox defined by administrator. Confirm through about:policies that expected policies are applied
- Have firefox installed in user writable directory(which be default is localappdata)

Steps to reproduce:
- Close firefox
- Go to the location of firefox.exe in installation dir, by default "%localappdata%\Mozilla Firefox" which is user writable
- Create new directory called distribution
- In the directory create new policies.json file with following content(this is invalid content for this file as normally "policies" object is required):

'''
{}
'''

- start firefox again
- go to about:policies


Actual results:

- all policies are inactive. State is reported as: "The Enterprise Policies service is inactive"
- Error tab reports: "Policies file doesn't contain a 'policies' object".
- User is allowed to bypass anything that was blocked by policies: for example install extensions which were not allowed.


Expected results:

I would expect that invalid policies.json should not invalidate policies that are loaded from Group Policies and disable whole service. This seems to be in fact what happens when the created file is valid, aka if I create file with this content instead(valid policies file but without any policies):

'''
{ "policies": {} }
'''

then the policies from Group Policy are correctly applied and file does not change anything. I think normally it is the case that group policies override what is in policies.json. It's just invalid file that causes whole Enterprise Policies service to stop working alltogether.

The original report as published on Mozilla's Bugzilla, by Mateusz Dobrzyński. 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 Enterprise Policies service treats an invalid policies.json as a fatal error and disables itself entirely, instead of ignoring the bad file and continuing to apply Group Policy settings.

Impact

A user could bypass enterprise policies, for example by installing extensions that were blocked, because the entire Enterprise Policies service becomes inactive.

What the attacker needed

Group Policy for Firefox defined by administrator; Firefox installed in a user-writable directory

The fix

The invalid policies.json should be ignored so that Group Policy settings remain active, rather than disabling the whole service.

How it was found

  1. Ensure Group Policy for Firefox is defined and applied.
  2. Close Firefox.
  3. Go to the Firefox installation directory, which is user-writable by default.
  4. Create a 'distribution' directory and place an invalid policies.json file inside it.
  5. Start Firefox and open about:policies.

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.

Group Policy is a Windows feature that lets administrators enforce settings on computers. Firefox reads these settings and also a local file called policies.json. The bug is that if a user places a broken policies.json in a folder they can write to, Firefox turns off all policy enforcement, including the administrator's rules.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.