Skip to content
Access control Advisory Advanced CVE-2026-11220

Insufficient validation of untrusted input in Navigation (CVE-2026-11220)

The browser's check that a renderer process actually hosts the origin it claims as a navigation initiator is skipped entirely when the claimed origin is opaque and the frame is an error document or MHTML subframe. A compromised renderer in those contexts could therefore forge an initiator origin with an arbitrary cross-site precursor and have the browser accept it, breaching site isolation.

Tianyi Hu Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Low View original
  • Fix shipped in 3 months

Report description

VerifyInitiatorOrigin() skips HostsOrigin() process lock check for opaque origins in error documents and MHTML subframes


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://source.chromium.org/chromium/chromium/src/+/main:content/browser/renderer_host/ipc_utils.cc


The problem

Please describe the technical details of the vulnerability

The problem

VerifyInitiatorOrigin() completely skips the HostsOrigin() process lock check when the initiator_origin is opaque and the current frame is an error document or MHTML subframe. A compromised renderer in these contexts can forge any opaque initiator origin with an arbitrary precursor, and the browser accepts it without verification — a site isolation boundary violation.

Vulnerable files:

Transmission chain:

  1. In RenderFrameImpl::OpenURL(), the renderer sets params->initiator_origin from info->url_request.RequestorOrigin() — attacker-controlled in a compromised renderer.
  2. The field is a url.mojom.Origin in the OpenURLParams Mojo struct, sent via mojom::FrameHost::OpenURL().
  3. In VerifyOpenURLParams(), the browser calls VerifyInitiatorOrigin() which checks whether the renderer process hosts the claimed origin.
  4. However, when the origin is opaque AND the frame is an error document, the function returns true immediately without calling HostsOrigin():
C++
if (initiator_origin.opaque()) {
    if (current_rfh && current_rfh->IsErrorDocument()) {
        return true;  // SKIP ALL VERIFICATION
    }
    if (current_rfh && current_rfh->IsMhtmlSubframe()) {
        return true;  // SKIP ALL VERIFICATION
    }
}

Two TODO comments in the code explicitly acknowledge this gap:

TODO(crbug.com/40109437): Ideally, origin verification should be performed even if initiator_origin is opaque, to ensure that the precursor origin matches the process lock.

Steps to reproduce:

  1. Check out the current stable tag (145.0.7632.110)
  2. git apply h5_patch_renderer_poc.diff
  3. Build: autoninja -C out/Default chrome
  4. Place PoC files in the same directory, start HTTP server:
    • python3 serve.py
  5. Launch patched Chrome and observe:
    • out/Default/Chromium.app/Contents/MacOS/Chromium --user-data-dir=/tmp/chrome-h5-test --enable-logging=stderr http://localhost:8080/index.html
    • The page embeds an iframe to a dead port (localhost:9999). After the error page loads, the patched renderer sends OpenURL with a forged opaque origin (precursor=http://cross-site-forged.example). The iframe navigates to victim.html — proving the forged initiator origin was accepted by the browser.

The renderer patch hooks DidFinishLoad() to detect error page subframes, then after 3 seconds calls GetFrameHost()->OpenURL() with a forged opaque initiator_origin whose precursor (http://cross-site-forged.example) does not match the error page's process lock (chrome-error://chromewebdata/). No special flags are needed.

Bisect: Introducing commit: 4043b7370f9b845cd06f07296e115c7094662c66

Evidence:

  • M127 (127.0.6533.72): blanket return true for ALL opaque origins (no IsErrorDocument/IsMhtmlSubframe check)
  • M128 (128.0.6613.84): first milestone with the targeted IsErrorDocument()/IsMhtmlSubframe() bypass pattern
  • Parent commit (5c67fc2a6cca): blanket bypass, no current_rfh parameter
  • Commit 4043b737: introduced current_rfh parameter and the error doc/MHTML bypass paths

The commit was a security hardening that narrowed a blanket opaque origin bypass to only error documents and MHTML subframes. However, these two remaining return true paths still skip HostsOrigin() entirely, and the TODOs acknowledge the gap remains unfixed.

Earliest affected release: Chrome M128 (stable August 2024). Latest confirmed: Chrome M145 (145.0.7632.110, current stable).

Suggested fix (attached as h5_fix.diff): Instead of blanket return true for opaque origins in error pages and MHTML subframes, validate that the precursor of the provided opaque origin matches the precursor of the frame's committed origin:

C++
// Before (vulnerable):
if (current_rfh && current_rfh->IsErrorDocument()) {
    return true;
}

// After (fixed):
if (current_rfh && current_rfh->IsErrorDocument()) {
    const auto& committed = current_rfh->GetLastCommittedOrigin();
    if (committed.opaque() &&
        committed.GetTupleOrPrecursorTupleIfOpaque() ==
            initiator_origin.GetTupleOrPrecursorTupleIfOpaque()) {
        return true;
    }
    bad_message::ReceivedBadMessage(
        process_id, bad_message::INVALID_INITIATOR_ORIGIN);
    return false;
}

This allows legitimate error page reloads (where the precursor naturally matches) while blocking forged cross-site precursors. Verified: with the fix applied, the renderer is killed with bad_message::INVALID_INITIATOR_ORIGIN (reason 213) instead of the navigation succeeding.

A browser test (h5_browsertest.diff) is also attached. It adds SecurityExploitBrowserTest.InvalidOpaqueInitiatorFromErrorPage to content/browser/security_exploit_browsertest.cc, following the same pattern as existing INVALID_INITIATOR_ORIGIN tests. The test creates an error page subframe via URLLoaderInterceptor, then directly injects a forged OpenURL with a mismatched opaque precursor and verifies the renderer is killed. Plan to upload both fix and test as a Gerrit CL.

Impact analysis

A compromised renderer in an error page or MHTML subframe context can forge navigation initiator origins with arbitrary cross-site precursors. This violates site isolation boundaries — the browser accepts navigations attributed to origins that the renderer process does not host.

Error pages are easy to trigger: any iframe pointed at a non-responsive server produces one. A compromised renderer in this context could forge initiator origins to manipulate navigation attribution, potentially affecting security decisions downstream that rely on the initiator origin (e.g., CSP, CORS preflight, permission delegation).


The cause

What version of Chrome have you found the security issue in?

145.0.7632.110 (Stable)

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Site Isolation Bypass

How would you like to be publicly acknowledged for your report?

Tianyi Hu

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

Chrome's site isolation model relies on the browser process checking that a renderer only claims origins it actually hosts. When a renderer asks the browser to open a URL, it supplies an initiator_origin in the OpenURLParams Mojo struct, and the browser validates that claim before acting on it. The check lives in VerifyInitiatorOrigin(), called from VerifyOpenURLParams() in content/browser/renderer_host/ipc_utils.cc.

The report covers a gap in that check: for opaque initiator origins, when the current frame is an error document or an MHTML subframe, the function returns true without ever calling HostsOrigin(). A compromised renderer in those contexts can therefore forge an opaque initiator origin with an arbitrary precursor, and the browser accepts it. The report describes this as a site isolation boundary violation.

Relevant files named in the report:

  • Browser: content/browser/renderer_host/ipc_utils.cc
  • Mojo definition: third_party/blink/public/mojom/frame/remote_frame.mojom (OpenURLParams.initiator_origin)
  • Renderer: content/renderer/render_frame_impl.cc (RenderFrameImpl::OpenURL())

Setup

The issue was confirmed against Chrome 145.0.7632.110 (Stable), which the report gives as both the version tested and the latest confirmed affected release. The earliest affected release is Chrome M128 (stable August 2024).

No special flags are needed to trigger the behaviour. The reproduction uses a patched renderer, a local HTTP server and a user data directory:

  1. Check out the current stable tag (145.0.7632.110).
  2. Apply the renderer patch.
  3. Build Chrome.
  4. Place the PoC files in the same directory and start the HTTP server.
  5. Launch the patched Chrome and observe the result.

The commands, exactly as given:

Bash
git apply h5_patch_renderer_poc.diff
Bash
autoninja -C out/Default chrome
Bash
python3 serve.py
Bash
out/Default/Chromium.app/Contents/MacOS/Chromium --user-data-dir=/tmp/chrome-h5-test --enable-logging=stderr http://localhost:8080/index.html

The launch command uses a throwaway profile directory and enables logging to stderr, then loads the PoC page from the local server.

Finding it

The researcher traced the transmission chain from renderer to browser:

  1. In RenderFrameImpl::OpenURL(), the renderer sets params->initiator_origin from info->url_request.RequestorOrigin(), which is attacker-controlled in a compromised renderer.
  2. The field is a url.mojom.Origin inside the OpenURLParams Mojo struct, sent via mojom::FrameHost::OpenURL().
  3. In VerifyOpenURLParams(), the browser calls VerifyInitiatorOrigin(), which checks whether the renderer process hosts the claimed origin.
  4. When the origin is opaque and the frame is an error document or an MHTML subframe, the function returns true immediately without calling HostsOrigin().

The bypass in the code:

C++
if (initiator_origin.opaque()) {
    if (current_rfh && current_rfh->IsErrorDocument()) {
        return true;  // SKIP ALL VERIFICATION
    }
    if (current_rfh && current_rfh->IsMhtmlSubframe()) {
        return true;  // SKIP ALL VERIFICATION
    }
}

Two TODO comments in the code acknowledge the gap. The report quotes one of them:

TODO(crbug.com/40109437): Ideally, origin verification should be performed even if initiator_origin is opaque, to ensure that the precursor origin matches the process lock.

The researcher also bisected the change that produced this shape. The introducing commit is [redacted], authored by Alex Moshchuk on June 14, 2024, with the message "Remove opaque origin exception from VerifyInitiatorOrigin()". The CL is https://chromium-review.googlesource.com/c/chromium/src/+/5590305, Cr-Commit-Position refs/heads/main@{#1315048}, bug crbug.com/40109437.

The bisect evidence:

  • M127 (127.0.6533.72): blanket return true for all opaque origins, with no IsErrorDocument/IsMhtmlSubframe check.
  • M128 (128.0.6613.84): first milestone with the targeted IsErrorDocument()/IsMhtmlSubframe() bypass pattern.
  • Parent commit (5c67fc2a6cca): blanket bypass, no current_rfh parameter.
  • Commit 4043b737: introduced the current_rfh parameter and the error document/MHTML bypass paths.

In other words, the commit was a security hardening that narrowed a blanket opaque origin bypass down to error documents and MHTML subframes. The two remaining return true paths still skip HostsOrigin() entirely, and the TODOs show the gap was known to remain.

Exploitation

Step 1: Serve the PoC page

The PoC files sit next to the server script, and python3 serve.py serves them on port 8080. The page embeds an iframe pointing at a dead port, localhost:9999.

Step 2: Trigger an error document

Because nothing listens on port 9999, the iframe ends up displaying an error page. This is the precondition the bypass needs: the current frame must be an error document.

Step 3: Send a forged OpenURL

The patched renderer hooks DidFinishLoad() to detect error page subframes. Three seconds later it calls GetFrameHost()->OpenURL() with a forged opaque initiator_origin whose precursor is http://cross-site-forged.example. That precursor does not match the error page's process lock, which is chrome-error://chromewebdata/.

Step 4: Observe the navigation

The iframe navigates to victim.html, which proves the browser accepted the forged initiator origin. No special flags are needed for this.

Step 5: Confirm the fix behaviour

With the suggested fix applied, the outcome changes: the renderer is killed with bad_message::INVALID_INITIATOR_ORIGIN (reason 213) instead of the navigation succeeding.

Root cause

VerifyInitiatorOrigin() is supposed to confirm that the renderer process hosts the origin it claims as the initiator. For opaque origins it cannot compare a tuple directly, so the meaningful check is the precursor tuple. The vulnerable code skips even that: for error documents and MHTML subframes it returns true before any comparison, so the precursor of the claimed opaque origin is never checked against the frame's committed origin or the process lock.

Because initiator_origin is populated from info->url_request.RequestorOrigin() in the renderer, a compromised renderer controls it completely. This verification step does nothing in these two contexts.

Impact

A compromised renderer in an error page or MHTML subframe context can forge navigation initiator origins with arbitrary cross-site precursors. The browser then accepts navigations attributed to origins the renderer process does not host, which violates site isolation boundaries.

The report says forged initiator origins could manipulate navigation attribution, potentially affecting security decisions that rely on the initiator origin, such as CSP, CORS preflight and permission delegation. The precondition is a compromised renderer plus a frame in an error document or MHTML subframe; the report notes error pages are easy to trigger.

Fix

Instead of returning true for opaque origins in error pages and MHTML subframes, the suggested fix validates that the precursor of the provided opaque origin matches the precursor of the frame's committed origin. The patch was attached as h5_fix.diff:

C++
// Before (vulnerable):
if (current_rfh && current_rfh->IsErrorDocument()) {
    return true;
}

// After (fixed):
if (current_rfh && current_rfh->IsErrorDocument()) {
    const auto& committed = current_rfh->GetLastCommittedOrigin();
    if (committed.opaque() &&
        committed.GetTupleOrPrecursorTupleIfOpaque() ==
            initiator_origin.GetTupleOrPrecursorTupleIfOpaque()) {
        return true;
    }
    bad_message::ReceivedBadMessage(
        process_id, bad_message::INVALID_INITIATOR_ORIGIN);
    return false;
}

This keeps legitimate error page reloads working, because there the precursor naturally matches, while blocking forged cross-site precursors. With the fix applied, the renderer is killed with bad_message::INVALID_INITIATOR_ORIGIN (reason 213).

A browser test was attached as h5_browsertest.diff. It adds SecurityExploitBrowserTest.InvalidOpaqueInitiatorFromErrorPage to content/browser/security_exploit_browsertest.cc, following the pattern of the existing INVALID_INITIATOR_ORIGIN tests. The test creates an error page subframe via URLLoaderInterceptor, injects a forged OpenURL with a mismatched opaque precursor, and verifies the renderer is killed. The researcher planned to upload both the fix and the test as a Gerrit CL.

  • Other IPC paths that carry an origin from renderer to browser and short-circuit on opaque origins. A positive result is a message accepted with a precursor that does not match the frame's committed origin or process lock.
  • The MHTML subframe branch specifically, since the report's PoC exercises the error document path. A positive result is a forged opaque initiator accepted from an MHTML subframe.
  • Frames whose committed origin is opaque for reasons other than error pages, such as sandboxed or data URL contexts. A positive result is any context where HostsOrigin() is skipped for an opaque claim.
  • Downstream consumers of the initiator origin, such as CSP checks, CORS preflight and permission delegation. A positive result is a security decision that changes based on a forged initiator origin.
  • Regression testing around the fix: legitimate error page reloads should still succeed, while mismatched precursors should produce bad_message::INVALID_INITIATOR_ORIGIN and kill the renderer.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

Chrome tries to keep websites apart. Each website should run in its own walled-off area, so that a page from one site cannot pretend to be a page from another. To make that work, Chrome is split into two big parts: the browser process, which is the trusted boss, and renderer processes, which actually draw web pages and run their code. Renderers are treated as untrusted, because they run code from the internet, and that code can be malicious.

When a renderer wants to send the user somewhere new, it asks the browser process to do it. Along with the request it says who is starting the navigation, in a field called initiator_origin. The browser is supposed to check that claim: does this renderer really host the site it says it is? That check is a function called VerifyInitiatorOrigin().

The report describes a hole in that check. In two special situations, when the page is an error document (the sad page Chrome shows when a site cannot be reached) or an MHTML subframe (a saved web page opened from disk), the check gives up and answers "yes, fine" without looking at anything. A renderer that has already been taken over by an attacker can use those two situations to claim to be any site it likes, and the browser believes it. The researcher calls this a site isolation bypass: the wall between sites has a door in it.

The report was filed through the Chrome Vulnerability Reward Program, the scheme Google runs to pay people who find and report security bugs in Chrome. The researcher is Tianyi Hu.

The pieces involved

Before the details, here are the parts of Chrome the report names, and what each one is.

  • Browser process: the trusted part of Chrome. It handles the address bar, the tabs, the network, and all the security decisions. It is the part that must never be fooled.
  • Renderer process: the part that turns HTML, CSS and JavaScript into a page you can see. Because it runs code from strangers, it is assumed to be compromisable.
  • Mojo: Chrome's internal messaging system. Think of it as the postal service between the browser process and the renderer processes. Messages have fixed shapes, called structs, so both sides agree on what fields a message contains.
  • IPC: inter-process communication, the general name for one program on your computer talking to another. Mojo is Chrome's IPC system.
  • Origin: the identity of a website, made of scheme, host and port, for example https://example.com:443. Two pages with the same origin are allowed to share data; pages with different origins are not.
  • Opaque origin: an origin with no readable name. It is deliberately anonymous, used for things like sandboxed pages or error pages. It still remembers where it came from, through a precursor, but it does not reveal that origin to scripts.
  • Precursor: the origin an opaque origin was derived from. It is kept for security checks but is not exposed to the page.
  • Process lock: the rule that a given renderer process is only allowed to host certain origins. It is the wall between sites in practice.
  • Error document: the page Chrome shows when a navigation fails, for example when nothing is listening on the target port. Its internal address is chrome-error://chromewebdata/.
  • MHTML: a file format that packs a whole web page, images and all, into a single file, so it can be saved and reopened offline. An MHTML subframe is a frame inside such a saved page.
  • CSP, CORS, permission delegation: three browser security features that make decisions based on where a request came from. CSP is a site's own list of what it is allowed to load; CORS decides whether one site may read a response from another; permission delegation decides which frames may use things like the camera. All three care about the initiator origin, which is why a forged one matters.

The problem

The report's one-line summary is that VerifyInitiatorOrigin() skips the HostsOrigin() process lock check for opaque origins in error documents and MHTML subframes. In plain words: in those two situations, the browser does not check that the renderer really owns the origin it claims.

The report points at three files:

  • Browser side: content/browser/renderer_host/ipc_utils.cc, where the verification lives.
  • The message definition: third_party/blink/public/mojom/frame/remote_frame.mojom, which declares the OpenURLParams.initiator_origin field.
  • Renderer side: content/renderer/render_frame_impl.cc, in the function RenderFrameImpl::OpenURL(), where the renderer fills in that field.

How a navigation request travels

The researcher traced the journey of the claim from renderer to browser in four steps.

  1. In RenderFrameImpl::OpenURL(), the renderer fills params->initiator_origin from info->url_request.RequestorOrigin(). In a healthy renderer this is honest. In a compromised renderer, the attacker controls it completely, so it can say anything.
  2. That field is a url.mojom.Origin inside the OpenURLParams Mojo struct, and it is sent to the browser through mojom::FrameHost::OpenURL(). Think of the struct as a form with a box labelled "who started this navigation", and the renderer fills in the box.
  3. On the browser side, VerifyOpenURLParams() calls VerifyInitiatorOrigin(), whose job is to check whether the renderer process hosts the claimed origin. This is the guard at the door.
  4. But when the origin is opaque and the frame is an error document or an MHTML subframe, the function returns true straight away, without ever calling HostsOrigin(). The guard waves the form through without reading the box.

The code that waves it through

C++
if (initiator_origin.opaque()) {
    if (current_rfh && current_rfh->IsErrorDocument()) {
        return true;  // SKIP ALL VERIFICATION
    }
    if (current_rfh && current_rfh->IsMhtmlSubframe()) {
        return true;  // SKIP ALL VERIFICATION
    }
}

Line by line:

  • if (initiator_origin.opaque()) { asks whether the claimed origin is opaque, that is, an anonymous origin with no readable name. Only opaque claims reach the code inside.
  • if (current_rfh && current_rfh->IsErrorDocument()) { asks two things: is there a current frame (current_rfh), and is that frame an error document? The && means both must be true.
  • return true; // SKIP ALL VERIFICATION answers "the claim is fine" immediately. The comment in the code itself says all verification is skipped.
  • if (current_rfh && current_rfh->IsMhtmlSubframe()) { does the same for a frame inside a saved MHTML page.
  • return true; // SKIP ALL VERIFICATION again accepts without checking.

The closing brace ends the opaque-origin block. Anything that is not opaque, or is opaque but not in one of these two frame types, falls through to the real check.

The developers knew

The code contains TODO comments acknowledging the gap. A TODO is a note a programmer leaves for later work. The report quotes one:

TODO(crbug.com/40109437): Ideally, origin verification should be performed even if initiator_origin is opaque, to ensure that the precursor origin matches the process lock.

In plain words: "we know we should check even opaque origins, by comparing the precursor with the process lock, but we are not doing it yet."

When the hole appeared

A bisect is a way of finding which code change introduced a behaviour, by testing versions in the middle of a range and narrowing down, like guessing a number by halving the range each time. The researcher bisected and found the introducing commit: [redacted], authored by Alex Moshchuk on June 14, 2024, with the message "Remove opaque origin exception from VerifyInitiatorOrigin()". The change is at https://chromium-review.googlesource.com/c/chromium/src/+/5590305, with Cr-Commit-Position refs/heads/main@{#1315048}, linked to bug crbug.com/40109437.

The bisect evidence, as listed in the report:

  • M127 (127.0.6533.72): a blanket return true for all opaque origins, with no IsErrorDocument/IsMhtmlSubframe check at all.
  • M128 (128.0.6613.84): the first milestone with the narrower IsErrorDocument()/IsMhtmlSubframe() bypass pattern.
  • The parent commit (5c67fc2a6cca): the blanket bypass, with no current_rfh parameter.
  • Commit 4043b737: added the current_rfh parameter and the error document and MHTML bypass paths.

So the commit was a security hardening: it took a very wide hole (every opaque origin accepted) and made it narrower (only error documents and MHTML subframes). But the two remaining return true paths still skip HostsOrigin() entirely, and the TODOs show the developers knew the gap was still there.

Reproducing it

The issue was confirmed on Chrome 145.0.7632.110 (Stable), which the report gives both as the version tested and as the latest confirmed affected release. The earliest affected release is Chrome M128 (stable August 2024). No special flags are needed.

The reproduction uses a patched renderer, a local web server and a throwaway profile. The steps, and why each one is there:

  1. Check out the current stable tag (145.0.7632.110). You need Chrome's source code at the exact version being tested, so the result is reproducible.
  2. Apply the renderer patch. The patch is a small change to the renderer that makes it deliberately misbehave, standing in for an attacker who has already taken over the renderer.
  3. Build Chrome. Source code has to be compiled into a program before it can run.
  4. Place the PoC files in the same directory and start the HTTP server. The PoC is the proof-of-concept page that triggers the bug.
  5. Launch the patched Chrome and watch what happens.

The commands, exactly as given:

Bash
git apply h5_patch_renderer_poc.diff

This applies the patch file to the source tree. git apply takes a file describing changes and edits the source files accordingly.

Bash
autoninja -C out/Default chrome

This builds Chrome. autoninja is the build tool, -C out/Default says which build directory to use, and chrome is the target to build.

Bash
python3 serve.py

This starts a small web server written in Python, serving the PoC files from the current directory.

Bash
out/Default/Chromium.app/Contents/MacOS/Chromium --user-data-dir=/tmp/chrome-h5-test --enable-logging=stderr http://localhost:8080/index.html

This launches the freshly built browser. --user-data-dir=/tmp/chrome-h5-test gives it a separate, throwaway profile so your normal browsing data is untouched. --enable-logging=stderr makes Chrome print its internal log messages to the terminal, so you can see what happens. The last part is the page to open: the PoC served by the local server on port 8080.

Exploitation, step by step

Step 1: Serve the PoC page

The PoC files sit next to the server script, and python3 serve.py serves them on port 8080. The page embeds an iframe pointing at a dead port, localhost:9999. An iframe is a page inside a page, a small window showing another address. Port 9999 is called dead because nothing is listening there.

Step 2: Trigger an error document

Because nothing listens on port 9999, the iframe ends up showing an error page. That is the precondition the bypass needs: the current frame must be an error document. The report notes that error pages are easy to trigger, since any iframe pointed at a non-responsive server produces one.

Step 3: Send a forged OpenURL

The patched renderer hooks DidFinishLoad(), a moment in the page's life when loading has finished, to detect error page subframes. Three seconds later it calls GetFrameHost()->OpenURL() with a forged opaque initiator_origin whose precursor is http://cross-site-forged.example. That precursor does not match the error page's process lock, which is chrome-error://chromewebdata/. The mismatch is the whole point: the renderer is claiming to be a site it does not host, and the browser should notice.

Step 4: Observe the navigation

The iframe navigates to victim.html, which proves the browser accepted the forged initiator origin. No special flags are needed for this.

Step 5: Confirm the fix behaviour

With the suggested fix applied, the outcome changes: the renderer is killed with bad_message::INVALID_INITIATOR_ORIGIN (reason 213) instead of the navigation succeeding. Killing the renderer is Chrome's way of saying "this process sent something it should never have sent".

Why it happens

VerifyInitiatorOrigin() is supposed to confirm that the renderer process hosts the origin it claims as the initiator. For a normal origin, the browser can compare the claimed origin with what the process is allowed to host. For an opaque origin there is no readable name to compare, so the meaningful check is the precursor: where did this anonymous origin come from? The vulnerable code skips even that. For error documents and MHTML subframes it returns true before any comparison, so the precursor of the claimed opaque origin is never checked against the frame's committed origin or the process lock.

Because initiator_origin is filled in from info->url_request.RequestorOrigin() in the renderer, a compromised renderer controls it completely. This verification step does nothing in these two contexts. The existing TODO comments show the limitation was understood; the hardening commit narrowed the bypass but did not close it.

Impact

A compromised renderer in an error page or MHTML subframe context can forge navigation initiator origins with arbitrary cross-site precursors. The browser then accepts navigations attributed to origins the renderer process does not host, which violates site isolation boundaries.

Forged initiator origins could manipulate navigation attribution, potentially affecting security decisions that rely on the initiator origin, such as CSP, CORS preflight and permission delegation. The precondition is a compromised renderer plus a frame in an error document or MHTML subframe; the report notes error pages are easy to trigger.

The fix

Instead of returning true for opaque origins in error pages and MHTML subframes, the suggested fix validates that the precursor of the provided opaque origin matches the precursor of the frame's committed origin. The patch was attached as h5_fix.diff:

C++
// Before (vulnerable):
if (current_rfh && current_rfh->IsErrorDocument()) {
    return true;
}

// After (fixed):
if (current_rfh && current_rfh->IsErrorDocument()) {
    const auto& committed = current_rfh->GetLastCommittedOrigin();
    if (committed.opaque() &&
        committed.GetTupleOrPrecursorTupleIfOpaque() ==
            initiator_origin.GetTupleOrPrecursorTupleIfOpaque()) {
        return true;
    }
    bad_message::ReceivedBadMessage(
        process_id, bad_message::INVALID_INITIATOR_ORIGIN);
    return false;
}

Line by line:

  • // Before (vulnerable): marks the old code, kept for comparison.
  • if (current_rfh && current_rfh->IsErrorDocument()) { is the same condition as before: is there a current frame, and is it an error document?
  • return true; is the old answer: accept without checking. This is the bug.
  • // After (fixed): marks the new code.
  • const auto& committed = current_rfh->GetLastCommittedOrigin(); fetches the origin the frame actually committed to, that is, the origin the browser itself recorded for this frame. This is trustworthy data, unlike the renderer's claim.
  • if (committed.opaque() && checks that the committed origin is itself opaque, and
  • committed.GetTupleOrPrecursorTupleIfOpaque() == compares its tuple or precursor tuple with
  • initiator_origin.GetTupleOrPrecursorTupleIfOpaque()) { the same value from the claimed origin. If the two match, the claim is consistent with reality.
  • return true; then accepts, but only after that comparison.
  • bad_message::ReceivedBadMessage( is reached when the comparison fails. It reports a bad message from the renderer,
  • process_id, bad_message::INVALID_INITIATOR_ORIGIN); naming the process and the reason: an invalid initiator origin.
  • return false; rejects the request.

This keeps legitimate error page reloads working, because there the precursor naturally matches, while blocking forged cross-site precursors. With the fix applied, the renderer is killed with bad_message::INVALID_INITIATOR_ORIGIN (reason 213).

A browser test was attached as h5_browsertest.diff. It adds SecurityExploitBrowserTest.InvalidOpaqueInitiatorFromErrorPage to content/browser/security_exploit_browsertest.cc, following the pattern of the existing INVALID_INITIATOR_ORIGIN tests. The test creates an error page subframe via URLLoaderInterceptor, injects a forged OpenURL with a mismatched opaque precursor, and verifies the renderer is killed. The researcher planned to upload both the fix and the test as a Gerrit CL. Gerrit is Google's code review tool, where a change is proposed and reviewed before it is merged.

The report lists variants worth testing, that is, other spots where the same mistake might hide:

  • Other IPC paths that carry an origin from renderer to browser and short-circuit on opaque origins. A positive result is a message accepted with a precursor that does not match the frame's committed origin or process lock.
  • The MHTML subframe branch specifically, since the report's PoC exercises the error document path. A positive result is a forged opaque initiator accepted from an MHTML subframe.
  • Frames whose committed origin is opaque for reasons other than error pages, such as sandboxed or data URL contexts. A positive result is any context where HostsOrigin() is skipped for an opaque claim.
  • Downstream consumers of the initiator origin, such as CSP checks, CORS preflight and permission delegation. A positive result is a security decision that changes based on a forged initiator origin.
  • Regression testing around the fix: legitimate error page reloads should still succeed, while mismatched precursors should produce bad_message::INVALID_INITIATOR_ORIGIN and kill the renderer. A regression test is a test that makes sure a fix does not break something that used to work.

Glossary

  • API: a defined way for one piece of software to ask another to do something, like a menu of allowed requests.
  • Browser process: the trusted core of Chrome that makes security decisions and talks to the network.
  • Bisect: finding the change that introduced a behaviour by testing versions in the middle of a range and narrowing down.
  • CORS: a browser rule that decides whether one website may read a response from another.
  • CSP: a website's own list of what it is allowed to load and run.
  • CVE: a public identifier for a known security vulnerability.
  • Error document: the page Chrome shows when a navigation fails, internally at chrome-error://chromewebdata/.
  • Gerrit CL: a proposed code change submitted for review in Google's Gerrit tool.
  • HostsOrigin(): the check that asks whether a renderer process is allowed to host a given origin.
  • iframe: a page embedded inside another page.
  • IPC: inter-process communication, one program on a computer talking to another.
  • MHTML: a file format that packs a whole web page into a single file for offline saving.
  • MHTML subframe: a frame inside a saved MHTML page.
  • Mojo: Chrome's internal messaging system between the browser process and renderer processes.
  • Opaque origin: an anonymous origin with no readable name, which still remembers its precursor.
  • Origin: the identity of a website, made of scheme, host and port.
  • Permission delegation: the rules deciding which frames may use features like the camera or microphone.
  • Precursor: the origin an opaque origin was derived from, kept for security checks.
  • Process lock: the rule that a renderer process may only host certain origins.
  • Renderer process: the part of Chrome that runs page code and draws pages, treated as untrusted.
  • Site isolation: Chrome's design of putting different websites in separate processes so they cannot interfere with each other.
  • Site isolation bypass: a bug that lets one site escape its process and act as another.
  • Struct: a fixed-shape bundle of fields used in a message.
  • TODO: a note a programmer leaves in code for work still to be done.
  • Tuple: the scheme, host and port triple that identifies an origin.
  • URLLoaderInterceptor: a test helper that intercepts network requests so a test can control the responses.
  • Vulnerability Reward Program (VRP): Google's scheme for paying people who report security bugs in Chrome.

More by Tianyi Hu

View all

6 more disclosed reports, best first.

More from Google Chrome

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.