Insufficient validation of untrusted input in SSL (CVE-2026-7996)
A browser-process IPC handler accepted a renderer-supplied origin without checking it against the renderer's committed origin, so a compromised renderer could claim any HTTPS site had run mixed content. This poisoned the profile-wide SSL state, making the targeted domain show a broken-HTTPS indicator in every tab until restart.
- Fix shipped in 3 months
Security Bug
Important: Please do not change the component of this bug manually.
Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md
Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs
Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp
NOTE: Security bugs are normally made public once a fix has been widely deployed.
VULNERABILITY DETAILS
ContentSecurityNotifier::NotifyInsecureContentRan() accepts a renderer-supplied
origin parameter via Mojo IPC without validating it against the renderer's
committed origin. A compromised renderer can spoof any origin, causing the browser
process to mark arbitrary HTTPS domains as having run insecure (mixed) content.
This pollutes the profile-level SSL state (SSLHostStateDelegate), degrading security indicators for the targeted domain across ALL tabs in the browser profile. The poisoned state persists until browser restart.
This violates the site isolation guarantee: a compromised renderer for attacker.com should not be able to affect the security presentation of bank.com.
Root Cause: In content/browser/loader/content_security_notifier.cc:
void ContentSecurityNotifier::NotifyInsecureContentRan( const GURL& origin, const GURL& insecure_url) { auto* render_frame_host = RenderFrameHostImpl::FromID(render_frame_host_id_); if (render_frame_host) { render_frame_host->OnDidRunInsecureContent(origin, insecure_url); // No validation that origin matches render_frame_host->GetLastCommittedOrigin() } }
The mojom definition already has a TODO acknowledging this design flaw (content_security_notifier.mojom line 26-27):
// TODO(nhiroki): Stop passing the origin, and instead take it from the // execution context host.
The spoofed origin flows through the following chain without validation:
- ContentSecurityNotifier::NotifyInsecureContentRan(origin, url) - no check
- RenderFrameHostImpl::OnDidRunInsecureContent(origin, url) - no check
- SSLManager::DidRunMixedContent(origin)
- SSLHostStateDelegate::HostRanInsecureContent(host, MIXED_CONTENT) - profile-level storage
- SSLManager::NotifySSLInternalStateChanged() - iterates ALL SSLManagers in BrowserContext
- Each tab's UpdateEntry() sets SSLStatus::RAN_INSECURE_CONTENT on matching hosts
Consequences:
- Renderer for attacker.com degrades bank.com's indicator to "broken HTTPS"
- Persists until browser restart (profile-level, in-memory std::set)
- All tabs visiting target domain are affected
- No user interaction required from the compromised renderer
VERSION
Chrome Version: 147.0.7682.0 (dev) — affects all versions since ContentSecurityNotifier was introduced (2020, Copyright header in the source file) Operating System: All platforms (verified on macOS 15.3.1, Darwin 25.2.0)
REPRODUCTION CASE
Prerequisites:
- Any Chromium build (does not require ASAN)
- --enable-blink-features=MojoJS flag (simulates compromised renderer)
Setup:
-
Extract the attached PoC files into a directory
-
Generate self-signed TLS certificates: openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem
-days 365 -nodes -subj '/CN=localhost' -
The PoC server needs access to Chromium build output's gen/ directory for MojoJS bindings. Place files at the same level as your chromium/src/ dir, or adjust the CHROMIUM_SRC path in server.py.
-
Start the PoC server: python3 server.py Server starts on https://127.0.0.1:8443/
-
Launch Chromium with MojoJS enabled: ./run.sh chrome Or manually: chrome --enable-blink-features=MojoJS
--ignore-certificate-errors
--no-first-run
--user-data-dir=/tmp/csn-poc
https://127.0.0.1:8443/
Steps: 6. On the PoC page, enter a target domain (e.g., www.google.com) 7. Click "Poison SSL State" 8. Open a NEW TAB and navigate to https://www.google.com 9. Open DevTools (F12) -> Security tab
Expected result: Security panel shows "This page is secure" — Google serves all content over HTTPS.
Actual result: Security panel shows: "This page is not secure (broken HTTPS)." "Resources - active mixed content" Google.com did NOT actually load any mixed content. The degraded state was caused entirely by the spoofed Mojo IPC from 127.0.0.1.
How the PoC works: The PoC uses --enable-blink-features=MojoJS to simulate a compromised renderer. It loads generated MojoJS bindings (content_security_notifier.mojom.m.js) and calls:
const remote = ContentSecurityNotifier.getRemote();
remote.notifyInsecureContentRan(
{ url: "https://www.google.com/" }, // spoofed origin
{ url: "http://evil.example.com/script.js" } // fake insecure URL
);
In a real attack, a compromised renderer would send this Mojo message directly without needing the MojoJS flag.
Attached files:
- poc.html : MojoJS exploit page (loads generated mojom bindings)
- server.py : HTTPS server (serves PoC page + gen/ directory for MojoJS modules)
- run.sh : Launch script for Chromium with correct flags
SUGGESTED FIX
Option 1 — Validate origin against committed origin:
void ContentSecurityNotifier::NotifyInsecureContentRan( const GURL& origin, const GURL& insecure_url) { auto* render_frame_host = RenderFrameHostImpl::FromID(render_frame_host_id_); if (!render_frame_host) return; if (!render_frame_host->GetLastCommittedOrigin().IsSameOriginWith( url::Origin::Create(origin))) { mojo::ReportBadMessage( "ContentSecurityNotifier: origin does not match committed origin"); return; } render_frame_host->OnDidRunInsecureContent(origin, insecure_url); }
Option 2 — Remove origin parameter entirely (resolves existing TODO):
// content_security_notifier.mojom: NotifyInsecureContentRan(url.mojom.Url insecure_url);
// content_security_notifier.cc: void ContentSecurityNotifier::NotifyInsecureContentRan( const GURL& insecure_url) { auto* render_frame_host = RenderFrameHostImpl::FromID(render_frame_host_id_); if (!render_frame_host) return; GURL origin = render_frame_host->GetLastCommittedOrigin().GetURL(); render_frame_host->OnDidRunInsecureContent(origin, insecure_url); }
Option 2 addresses the TODO(nhiroki) and eliminates the trust-the-renderer pattern. Callers in mixed_content_checker.cc would need updating to stop passing origin.
CREDIT INFORMATION
Reporter credit: heesun
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 IPC handler trusted the renderer-supplied origin instead of deriving it from the frame's committed origin, a trust-the-renderer pattern the mojom file already flagged with a TODO.
Impact
A compromised renderer could degrade the security indicator of any HTTPS domain across all tabs in the profile until browser restart, though this is a presentation issue rather than an actual content compromise.
What the attacker needed
Compromised renderer process; MojoJS flag for the PoC only
The fix
The handler should either reject messages whose origin does not match the frame's committed origin or drop the origin parameter and take it from the execution context host.
How it was found
- Set up the PoC server with self-signed certificates and launch Chromium with the MojoJS flag to simulate a compromised renderer.
- On the PoC page, enter a target domain such as a search engine.
- Click the button that poisons the SSL state.
- Open a new tab and navigate to the target domain.
- Open DevTools and check the Security panel, which reports broken HTTPS and active mixed content even though the site loaded none.
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.
Browsers split work between a sandboxed renderer process (which handles page content) and a privileged browser process (which draws security indicators). The renderer is supposed to tell the browser 'this page loaded insecure content', but the browser never checked that the message came from the page it claimed. A malicious or hijacked renderer could therefore make the padlock look broken for a completely different site, such as a bank, in every open tab.
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.