Incorrect authorization in PushAPI (CVE-2026-87652)
The PushMessagingManager fails to enforce Fenced Frame storage partitioning when handling Mojo IPC requests, allowing a compromised renderer in a same-origin Fenced Frame to access or modify the embedder's push subscriptions by guessing the Service Worker registration ID. This could break the intended privacy boundary and enable cross-context tracking.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
Flapjack, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the security team.
Overview: The PushMessagingManager fails to enforce Fenced Frame storage partitioning when handling Mojo IPC requests. By providing a guessed Service Worker registration ID, a compromised renderer in a same-origin Fenced Frame can bypass origin checks to access or modify the push subscriptions of its embedder. This potentially breaks the intended privacy boundary and allows cross-context tracking.
Affected files:
content/browser/push_messaging/push_messaging_manager.cc
Estimated timestamp from git blame: 2024-12-10
Summary
There is a potential vulnerability in content/browser/push_messaging/push_messaging_manager.cc where a compromised renderer in a Fenced Frame can bypass storage isolation. By invoking blink::mojom::PushMessaging IPC methods with the Service Worker registration ID of its embedder, the Fenced Frame can read, create, or delete the embedder's push subscriptions.
Vulnerability Details
Fenced Frames are designed to be strictly isolated from their embedder via a partitioned StorageKey that includes a unique nonce, even if they share the same url::Origin (e.g., in mode="default"). However, the browser-side checks in PushMessagingManager fail to properly enforce this boundary:
- Flawed Origin Check: Methods like
GetSubscription,Subscribe, andUnsubscriberely onChildProcessSecurityPolicyImpl::CanAccessDataForOrigin. This function only validates theurl::Originand explicitly ignores theStorageKey's partition nonce. Thus, a Fenced Frame requesting access to a same-origin embedder's data passes this check. - Flawed Fenced Frame Check: The
Subscribemethod (lines 192-197) attempts to block requests from Fenced Frames by checkingservice_worker_registration->ancestor_frame_type() == kFencedFrame. However, this checks the target registration, not the calling context. If the Fenced Frame targets a registration created by the normal unpartitioned embedder, this check passes. Furthermore,GetSubscriptionandUnsubscribelack this check entirely. - Guessable IDs: Service Worker registration IDs are sequentially generated 64-bit integers global to the
StoragePartition. An attacker can easily guess the embedder's ID by registering a dummy Service Worker to leak the current sequence counter.
Potential Steps to Trigger
(Note: These are suggested steps based on code analysis; our tooling agent does not yet have the ability to run code or provide a live working proof of concept.)
- An attacker embeds a
mode="default"Fenced Frame that is same-origin with its top-level page. - The attacker compromises the renderer process hosting the Fenced Frame.
- The attacker registers a dummy Service Worker inside the Fenced Frame to observe the assigned
service_worker_registration_idand infers the ID of the embedder's Service Worker. - The compromised renderer directly invokes the
blink::mojom::PushMessaging::GetSubscriptionMojo IPC, passing the embedder's guessed registration ID. - The browser process receives the IPC. The
CanAccessDataForOrigincheck passes because the Fenced Frame and embedder are same-origin. - The browser retrieves the embedder's full, sensitive Push Subscription details (Endpoint URL, P256DH key, Auth secret) and returns them to the attacker via the Mojo callback, violating Fenced Frame isolation.
Suggested Fix
- Check Caller Context:
PushMessagingManagershould verify if the IPC request originates from a Fenced Frame. For frame-bound instances, checkrender_frame_host->IsNestedWithinFencedFrame()(or similar logic viarender_frame_id_) and reject the request immediately. - Validate StorageKey: When looking up or acting upon a
ServiceWorkerRegistration, the browser should verify that theStorageKeyof the retrieved registration strictly matches theStorageKeyof the calling context, including the partition nonce.
Evaluated with Chrome root at commit: 09ec9e7cc4d24823d20b6d37cf3d282734f6bf0f
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
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 browser-side checks in PushMessagingManager only validate the origin and the target registration's ancestor frame type, ignoring the caller's StorageKey partition nonce and the calling context's Fenced Frame status.
Impact
A compromised renderer in a same-origin Fenced Frame could read, create, or delete the embedder's push subscriptions, potentially breaking the privacy boundary and enabling cross-context tracking.
What the attacker needed
Attacker can embed a same-origin Fenced Frame; attacker can compromise the renderer process; attacker can guess the Service Worker registration ID
The fix
PushMessagingManager should check the caller's context for Fenced Frame nesting and validate that the StorageKey of the target registration matches the caller's StorageKey, including the partition nonce.
How it was found
- An attacker embeds a mode="default" Fenced Frame that is same-origin with its top-level page.
- The attacker compromises the renderer process hosting the Fenced Frame.
- The attacker registers a dummy Service Worker inside the Fenced Frame to observe the assigned service_worker_registration_id and infers the ID of the embedder's Service Worker.
- The compromised renderer directly invokes the blink::mojom::PushMessaging::GetSubscription Mojo IPC, passing the embedder's guessed registration ID.
- The browser process receives the IPC. The CanAccessDataForOrigin check passes because the Fenced Frame and embedder are same-origin.
- The browser retrieves the embedder's full, sensitive Push Subscription details (Endpoint URL, P256DH key, Auth secret) and returns them to the attacker via the Mojo callback, violating Fenced Frame isolation.
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.
A Fenced Frame is a web page embedded inside another page but designed to be isolated so it cannot share data with the page around it. Here, a bug in how the browser checks permissions lets a malicious Fenced Frame read or change the push notification subscriptions of the page that contains it, if both are on the same website. This breaks the isolation and could let an attacker track users across contexts.
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.