Skip to content
Info disclosure Advisory Advanced CVE-2026-7971

Inappropriate implementation in ORB (CVE-2026-7971)

ORB's content sniffers fail to skip the UTF-8 BOM, so BOM-prefixed HTML, XML, or JSON responses are not recognised and are allowed into the renderer. An attacker could then use Spectre-style side-channel attacks to leak cross-origin data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 38 days

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: ORB's content sniffers do not skip the UTF-8 Byte Order Mark (BOM) when analyzing responses. This causes ORB to fail to identify BOM-prefixed HTML, XML, or JSON, leading to a fail-open condition where the sensitive response is allowed into the renderer process. An attacker could exploit this to leak cross-origin data using Spectre-style attacks.

Affected files:

  • services/network/orb/orb_sniffers.cc
  • services/network/orb/orb_impl.cc

Estimated timestamp from git blame: 2024-02-20

Summary

Opaque Response Blocking (ORB) aims to prevent sensitive cross-origin data (like HTML, XML, or JSON) from entering a renderer process unless permitted by CORS. When a response lacks the X-Content-Type-Options: nosniff header, ORB relies on content sniffing to determine if the response should be blocked. However, the ORB sniffers (SniffForHTML, SniffForXML, SniffForJSON in services/network/orb/orb_sniffers.cc) fail to account for the UTF-8 Byte Order Mark (BOM, 0xEF 0xBB 0xBF) at the beginning of a response.

Technical Details

  1. Whitespace Skipping: The function AdvancePastWhitespace() is used by SniffForHTML and SniffForXML to skip leading characters, but it only checks for ASCII whitespace (' ', '\t', '\r', '\n'). It does not strip the UTF-8 BOM.
  2. Sniffer Failures:
    • SniffForHTML compares the data against signatures starting with <. Since the data starts with 0xEF, it returns kNo.
    • SniffForXML compares against <?xml and also fails.
    • SniffForJSON skips whitespace byte-by-byte but expects the first non-whitespace character to be {. Upon encountering 0xEF, it returns kNo.
  3. Fail-Open Behavior: When all sniffers fail to recognize the content, OpaqueResponseBlockingAnalyzer::Sniff() eventually falls back to HandleEndOfSniffableResponseBody(). Due to a transitional fail-open policy for unrecognized non-JS MIME types, this function returns Decision::kAllow, permitting the response to cross the process boundary.

Potential Exploitation Steps

Note: These are suggested steps based on code analysis; a working Proof of Concept has not yet been executed.

  1. An attacker creates a malicious webpage (e.g., https://evil.com).
  2. The attacker's page executes a no-cors cross-origin request (e.g., via fetch or an {{media:0}} tag) targeting a sensitive endpoint on https://victim.com/secret.
  3. The victim server responds with sensitive HTML, XML, or JSON data. The response lacks the X-Content-Type-Options: nosniff header and the body is prefixed with a UTF-8 BOM (0xEF 0xBB 0xBF).
  4. The Network Service's ORB implementation intercepts the response and attempts to sniff the content.
  5. Because AdvancePastWhitespace() and the sniffers do not skip the BOM, they fail to identify the response as HTML, XML, or JSON.
  6. ORB falls back to HandleEndOfSniffableResponseBody(), which returns Decision::kAllow, allowing the sensitive data into the attacker's renderer process.
  7. The attacker utilizes a Spectre-style side-channel gadget in their JavaScript to speculatively read the sensitive cross-origin bytes from the renderer's memory and exfiltrate them.

Suggested Fix

Modify the sniffing logic in services/network/orb/orb_sniffers.cc to explicitly detect and skip the UTF-8 BOM (0xEF 0xBB 0xBF) if it is present at the very beginning of the response body.

  • Update AdvancePastWhitespace() (or create a new helper) to strip the BOM.
  • Ensure SniffForJSON() also skips the BOM before its state machine begins evaluating characters.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from 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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

The ORB sniffing functions do not skip the UTF-8 BOM before checking the response body, so BOM-prefixed HTML, XML, or JSON is not recognised and falls through to a fail-open allow decision.

Impact

An attacker could leak cross-origin data using Spectre-style attacks, but the report notes that a working proof of concept has not yet been executed.

What the attacker needed

Victim server omits nosniff header; response body starts with UTF-8 BOM; attacker can run JavaScript in a browser; Spectre-style side-channel gadget available

The fix

The sniffing logic should be modified to detect and skip the UTF-8 BOM at the start of the response body, including in the JSON sniffer.

How it was found

  1. An attacker creates a malicious webpage.
  2. The attacker's page makes a no-cors cross-origin request to a sensitive endpoint on the victim site.
  3. The victim server responds with sensitive HTML, XML, or JSON that lacks the nosniff header and starts with a UTF-8 BOM.
  4. ORB intercepts the response and tries to sniff its content.
  5. The sniffers fail to recognise the content because they do not skip the BOM.
  6. ORB falls back to allowing the response, and the attacker uses a Spectre-style side-channel to read the data.

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.

Opaque Response Blocking (ORB) is a browser defence that stops a website from reading sensitive data from another site unless that site explicitly allows it. The check looks at the first few bytes of a response to guess its type, but it forgets to skip a special invisible marker called a byte order mark (BOM) that some servers put at the start. Because of this, the check misidentifies the data and lets it through, which could let an attacker use a CPU side-channel trick to read it.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.