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

PContent::NotifyOnHistoryReload discloses victim passwords, OTPs, and selected-file bytes

A compromised web content process could call a parent-process IPC message asking for reload state of a browsing context it did not own, and the parent returned the full session-history load state including a retained POST body. This let the attacker recover a victim's password, one-time code, selected filename and file contents across the Fission process boundary.

Yaqoub Aldurayhim Follow

Originally disclosed on Mozilla

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

Created attachment 9608904 poc.patch

Overview

A compromised web content process can call the process-wide PContent::NotifyOnHistoryReload IPC with a BrowsingContext that it knows through a shared BrowsingContextGroup, but does not own. The parent checks only whether the selected context is null or discarded. It then creates an nsDocShellLoadState from that other process's canonical active session-history entry and returns the complete state to the caller.

For a real form POST, that state contains the retained POST input stream. The PoC confirms disclosure of all of the following from an example.org victim to a separately isolated example.net content process:

  • a password field
  • a one-time code
  • the name of a selected disk-backed file
  • and the exact selected-file contents carried by a multipart/form-data POST.

Two default-Fission topologies are covered:

  1. a compromised cross-origin child reads its top-level victim; and
  2. a compromised cross-origin opener reads a victim popup after the popup performs the POST.

The popup case does not depend on the victim embedding an attacker iframe. The opener relationship remains intact across the victim's POST navigation, while the opener and popup execute in different content-process PIDs.

The patch adds a test-only nsIDOMWindowUtils adapter that issues the generated production child-side send method and serializes the production response. It does not change the parent receiver, context decoder, canonical history entry, or any authorization decision. It does not forge or replace session-history state, mutate principals, replay a load state, or perform a reload.

Build / Environment

  • Validation date: 2026-07-14
  • Product: Firefox Nightly 154.0a1
  • Source revision: 406555efb4216a82987a4651e1cd7aaeafa5c937
  • Runtime BuildID: 20260714200643
  • Host: Ubuntu 24.04.4 LTS, Linux 6.8.0-124-generic, x86-64
  • Build: local optimized Nightly build with tests enabled and no user-supplied .mozconfig
  • Runtime: fresh mochitest profile, e10s enabled, Fission enabled, content sandbox level 6
  • Configuration: no preference changes, no sandbox override, and no DevTools
  • Display: normal browser-chrome run under Xvfb

Steps To Reproduce

  1. Apply the attached patch from the Firefox source root:

    Shell
    git apply --check /path/to/poc.patch
    git apply /path/to/poc.patch
    
  2. Lint and build:

    Shell
    ./mach lint -l eslint \
      docshell/test/browser/browser_session_history_sensitive_post_disclosure.js \
      docshell/test/browser/file_session_history_sensitive_post.sjs
    ./mach build
    
  3. Run the focused test:

    Shell
    xvfb-run -a ./mach test \
      docshell/test/browser/browser_session_history_sensitive_post_disclosure.js
    
  4. For a stability run, repeat the full test three times in one browser session:

    Shell
    xvfb-run -a ./mach test \
      docshell/test/browser/browser_session_history_sensitive_post_disclosure.js \
      --repeat 3
    

The fixture uses SpecialPowers.createFiles and mozSetFileArray to model a deterministic user-selected disk file before the victim submits the real multipart form.

Actual Results

The final repeated run passed 42/42 assertions with no unexpected results. Each of the three iterations passed 14/14 assertions: six for the embedded-child topology and eight for the opener-popup topology.

Selected output:

Text
SENSITIVE-POST BUILD version=154.0a1 buildID=20260714200643 e10s=true fission=true contentSandboxLevel=6
PASS ... victim and compromised child use different Fission processes
SENSITIVE-POST DISCLOSURE topology=embedded-child uri=https://example.org/.../file_session_history_sensitive_post.sjs bytes=511 password=true otp=true fileName=true fileBytes=true
PASS ... cross-origin victim popup remains in the attacker's group
PASS ... victim popup and compromised opener use different Fission processes
PASS ... the POST result retains the cross-origin opener relationship
SENSITIVE-POST DISCLOSURE topology=opener-popup uri=https://example.org/.../file_session_history_sensitive_post.sjs?standalone=1 bytes=511 password=true otp=true fileName=true fileBytes=true
Browser Chrome Test Summary
    Passed: 42
    Failed: 0
Overall Summary: OK

The multipart boundary varies between runs, so the total body length was 507 or 511 bytes. In every run, the attacker recovered the exact constant values for the password, OTP, filename, and file contents. The request used aForceReload=false; no page reload occurred.

Expected Results

The parent should reject the request unless the sending ContentParent is authorized to obtain reload state for the selected canonical BrowsingContext. Merely being subscribed to the same BrowsingContextGroup must not authorize access to another process's URI, POST stream, or session-history metadata.

An owning content process must retain normal reload behavior. A non-owner request should fail before CanonicalBrowsingContext::NotifyOnHistoryReload reads the active entry and before any secret-bearing response object is serialized.

Security Impact

This is a direct confidentiality break across Fission's content-process boundary. After compromising one sandboxed web renderer, an attacker can use a normal same-group relationship to receive parent-held form data belonging to a different origin and process. The confirmed data is high-value user input: credentials, a one-time authentication code, and the exact contents of a file the victim selected and submitted.

The opener-popup proof broadens reach beyond sites that embed an attacker frame. The target must still be known in the same BrowsingContextGroup, and the target must have a retained POST entry; this is not an arbitrary-all-tabs read.

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 handler for the history-reload IPC only checked that the target context was non-null and not discarded, without verifying that the sending content process owned that browsing context.

Impact

A compromised renderer could read another origin's retained POST data, including credentials, a one-time code and selected-file bytes, but only for a target known in the same browsing context group that has a retained POST entry.

What the attacker needed

Attacker already controls a content process; target in same browsing context group; target has a retained POST entry

The fix

The parent should reject the request unless the sending content process is authorised to obtain reload state for the selected browsing context, failing before the active entry is read.

How it was found

  1. Apply the provided patch to the Firefox source tree.
  2. Lint and build the browser.
  3. Run the focused browser test under a virtual display.
  4. Repeat the test three times in one session to check stability.

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 web pages into separate sandboxed processes, so one site's code should never see another site's data. Here a page that an attacker had already taken over could ask the browser's central process for the saved state of a different page's form submission, and the browser handed back the submitted form, including a password and a chosen file. The check was only that the two pages were loosely related, not that the asker actually owned the target page.

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.