Skip to content
Access control Disclosed report Advanced CVE-2026-74962

CookieStoreParent fail-open when PCookieServiceParent is absent

In Firefox, the parent-side CookieStoreParent security check fails open when the sending content process has no PCookieServiceParent actor, so a compromised content process can delete that actor and then read, write and delete cookies for other hosts and containers. The reporter demonstrated cross-site and cross-container cookie access from a compromised content process, though not HttpOnly disclosure or a sandbox escape.

Yaqoub Aldurayhim Follow

Originally disclosed on Mozilla

  • Fixed in 22 days
  • Paid in 3 months
  • Disclosed after 22 days

Created attachment 9601289 poc_server.py

Summary

CookieStoreParent::CheckContentProcessSecurity returns true when the sender's PNeckoParent has no managed PCookieServiceParent. A compromised content process can create that state by sending the valid PCookieService::__delete__() message, then opening PCookieStore over PBackground and sending CookieStore GetRequest, SetRequest, and DeleteRequest messages for a victim host.

The parent then authorizes the request without calling CookieServiceParent::ContentProcessHasCookie. Because the PCookieStore messages contain child-supplied cookieURI and OriginAttributes, this gives a compromised content process cross-site and cross-container cookie access through the parent cookie store.

Attack Model

This is a compromised-content-process IPC finding. The PoC models attacker control of a content process, not ordinary webpage JavaScript. Under that model, the content process can send PCookieService::__delete__(), keep using PCookieStore, and send parent-bound CookieStore requests with attacker-selected cookieURI and OriginAttributes.

The expected boundary is parent-side validation: CookieStoreParent should only allow cookie access for hosts and origin attributes already authorized for that content process. When the PCookieServiceParent actor is absent, the current code fails open instead.

Impact

Runtime validated in Firefox Nightly 154.0a1 with default prefs:

  • Read non-HttpOnly victim cookies for another host.
  • Write a secure victim-host __Host- cookie from the attacker content process.
  • Delete non-HttpOnly victim cookies.
  • Cross Firefox container cookie jars by supplying OriginAttributes with ^userContextId=2.

This report does not claim HttpOnly cookie value disclosure and does not claim a sandbox escape. The demonstrated boundary break is parent-authorized cookie read/write/delete from a compromised content process.

Affected Build

Official Nightly archive checked:

Text
Firefox Nightly 154.0a1
BuildID: 20260625112639
Platform: Linux x86_64 / Ubuntu 24.04

Reproduction

  1. Apply poc.patch to mozilla-central and build Firefox.
  2. Start the local two-origin server:
Bash
python3 submission/poc_server.py
  1. Run the default-profile validation:
Bash
MOZ_CK_POC_STORE_NULL=1 ./mach run --headless --no-remote --profile /tmp/ckpoc-profile http://127.0.0.2:8902/

Expected stderr:

Text
[CK-POC][cookiestore-null] deleting PCookieService actor before PCookieStore request mode=default
[CK-POC][cookiestore-null][parent] no PCookieServiceParent for domain=127.0.0.2; failing open
[CK-POC][cookiestore-null] PCookieStore GetRequest returned: victim_session=SECRET-CK-7c2f4e91-cross-site-cookie-theft;
[CK-POC][cookiestore-null] PCookieStore SetRequest success=1 wait=1
[CK-POC][cookiestore-null] PCookieStore DeleteRequest wait=0

The cookie DB then contains the attacker-written victim cookie and no longer contains the original non-HttpOnly victim cookie:

Text
|127.0.0.2|__Host-store-null|FORGED-STORE-NULL|1|0|/

The original report as published on Mozilla's Bugzilla, by Yaqoub Aldurayhim. 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 parent-side authorisation check treats a missing PCookieServiceParent actor as permission granted instead of denying the request.

Impact

A compromised content process could read non-HttpOnly cookies for other hosts, write a secure __Host- cookie for a victim host, delete non-HttpOnly victim cookies, and cross Firefox container jars; the report does not claim HttpOnly disclosure or a sandbox escape.

What the attacker needed

Compromised content process; Firefox Nightly build with PoC patch

How it was found

  1. Apply the provided patch to mozilla-central and build Firefox.
  2. Start the local two-origin test server.
  3. Run the headless Firefox build against the test page with the PoC environment variable set.
  4. Observe the parent log showing it fails open when no PCookieServiceParent exists.
  5. Observe the CookieStore GetRequest returning another host's cookie and the SetRequest succeeding.
  6. Check the cookie database to confirm the forged victim cookie is stored and the original is gone.

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.

Firefox splits its work into a sandboxed 'content process' that renders pages and a more trusted 'parent' process that holds sensitive data like cookies. The parent is supposed to check whether the content process is allowed to touch a given site's cookies, but here that check returns 'allowed' whenever a particular internal messaging object is missing. A malicious or compromised content process can remove that object itself, then ask the parent for another site's cookies and get them.

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 Yaqoub Aldurayhim

View all

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