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

PFetch URL-list URIParams deserialization permits parent-mediated local/profile file read

A nested URI type accepted a serialized outer wrapper and inner URI without checking they matched, so a compromised content process could send a forged nested URI over IPC whose visible spec differed from its inner URI. Using the PFetch URL list, the parent then opened the attacker-chosen view-source target (a local file or cross-origin HTTPS URL) while security checks saw the hidden same-origin inner URI, returning the contents as a readable response.

Yaqoub Aldurayhim Follow

Originally disclosed on Mozilla

  • Fixed in 35 days
  • Paid in 53 days
  • Disclosed after 35 days

Created attachment 9602257 pfetch_url_list_viewsource_file_profile_chain_poc.patch

PFetch URL-list URIParams deserialization permits parent-mediated local/profile file read

Tested build

  • Firefox Nightly 154.0a1
  • Official Build ID: 20260626040954
  • Platform tested: Linux x86_64

Threat model

Compromised web content process sending attacker-controlled IPC parameters.

Summary

SimpleNestedURIParams stores the serialized outer SimpleURIParams and serialized innerURI independently. nsSimpleNestedURI::Deserialize() accepts both fields without checking that the outer wrapper state is the canonical wrapper for the inner URI.

That lets a compromised content process deserialize an nsINestedURI whose visible/source-facing spec is attacker chosen, while GetInnerURI() and GetInnermostURI() return a different URI.

The validated impact uses PFetch. IPCInternalRequest.urlList carries nsIURI[]; the parent rebuilds InternalRequest by cloning that URL list and later opens the last URL through FetchDriver. With a forged nested view-source: URI:

  • visible target: view-source:file:<attacker-selected local path> or view-source:https://victim.example/...
  • hidden inner URI: same-origin HTTPS cover URL

The parent opens the visible target, while same-origin/security classification observes the hidden same-origin inner URI. The response is returned to the content process as a readable basic response.

Validated impact

With default Nightly behavior and a test-only sender hook that simulates a compromised content process:

  • ordinary same-origin-mode cross-origin fetch is blocked;
  • forged PFetch URL-list request reads a credentialed cross-origin view-source:https: response including an HttpOnly cookie echoed by the victim test server;
  • ordinary same-origin-mode file: reads are blocked;
  • forged PFetch URL-list request reads view-source:file: targets selected by the attacker;
  • the profile-chain PoC reads the active profile path, prefs.js, persisted cookies.sqlite, places.sqlite, victim-origin localStorage data.sqlite, logins.json, and key4.db;
  • the saved-login test recovers a controlled saved username/password from returned logins.json ciphertext in the default no-primary-password profile;
  • binary arrayBuffer() reads match active-profile file lengths for several profile files.

This is a limited sandbox-escape / arbitrary local and profile file read primitive from a compromised content process.

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 deserialiser for the nested URI type trusted the serialised outer wrapper and inner URI independently, without verifying the outer wrapper is the canonical wrapper for that inner URI.

Impact

A compromised content process could read arbitrary local files and profile data (including cookies, saved logins and key material) and make credentialed cross-origin reads, giving a limited sandbox escape; the tests relied on a test-only sender hook to simulate the compromised process.

What the attacker needed

Compromised content process; test-only sender hook to simulate it

How it was found

  1. Compromise the content process and send a forged PFetch URL-list request over IPC.
  2. Include a nested view-source URI whose visible target is a local file or cross-origin HTTPS URL and whose hidden inner URI is a same-origin cover URL.
  3. The parent clones the URL list and opens the last URL through FetchDriver.
  4. The parent fetches the visible target while security classification sees the hidden same-origin inner URI.
  5. The response is returned to the content process as a readable basic response.

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 process that renders web pages and a more privileged parent process. The page process can ask the parent to fetch things, and it sends a description of the address to fetch. Here the description had two parts that could disagree: the address shown to the fetching code and the address used for security checks. A malicious page process could exploit that gap to make the parent read local files or other sites' data and hand it back.

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.