Incomplete cleanup in Network (CVE-2026-85043)
Chromium's NTLM and Negotiate authentication handlers compute channel bindings only once during initialisation, so if the TLS connection is closed after the initial challenge, a new connection reuses the stale binding. An on-path attacker with a mis-issued certificate could relay the victim's credentials to the real server, bypassing Extended Protection for Authentication.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 56 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: Chromium's NTLM and Negotiate authentication handlers compute channel bindings exactly once during initialization. If a TLS connection is closed after the initial challenge, the transaction restarts with a new TLS stream while reusing the existing handler and its stale channel binding. This allows an on-path attacker holding a mis-issued certificate to bypass Extended Protection for Authentication (EPA).
Affected files:
net/http/http_auth_handler_ntlm.ccnet/http/http_auth_handler_negotiate.ccnet/http/http_network_transaction.ccnet/http/http_auth_controller.cc
Estimated timestamp from git blame: 2016-03-23
1. Summary of the Issue (Meant for Human Triage)
Chromium's NTLM (HttpAuthHandlerNTLM) and Negotiate (HttpAuthHandlerNegotiate) authentication handlers compute the RFC 5929 tls-server-end-point channel bindings exactly once during their Init() phase from the initial TLS connection's SSLInfo. If the connection is closed or reset after the server's initial 401 Unauthorized challenge, HttpNetworkTransaction::DidDrainBodyForAuthRestart() initiates a fresh TLS connection (STATE_CREATE_STREAM) but preserves the existing HttpAuthController and its associated authentication handler.
As a result, subsequent authentication rounds reuse the stale channel binding associated with the original certificate. An on-path attacker holding a CA-trusted mis-issued certificate (C_mitm) can exploit this vulnerability by passively relaying the initial 401 challenge (so the client computes channel bindings bound to the real server's certificate, C_real), terminating that connection, and then actively MITMing the subsequent connection with C_mitm. When the client generates its NTLM/Negotiate credentials, it binds them to C_real and transmits them over the C_mitm connection, allowing the attacker to relay them to the real server and successfully authenticate, completely bypassing Extended Protection for Authentication (EPA / ExtendedProtection = Require).
This issue affects both the Windows SSPI and portable NTLMv2 implementations, representing a severe bypass of a critical cryptographic channel-binding hardening layer.
2. Proof-of-Concept & Detailed Execution Flow
(Note: These are potential steps derived from deep static analysis; our tooling agent does not have the ability to run a live proof-of-concept yet).
Attacker Setup & Preconditions:
- Attacker Position: On-path network adversary.
- Target Origin: Registered in the victim browser's
AuthServerAllowlist(enabling auto-selection of SSO credentials without user interaction). - Target Server Configuration: Enforces Windows Extended Protection for Authentication (
ExtendedProtection = Require). - Mis-issued Certificate: The attacker holds a valid, CA-trusted certificate
C_mitmfor the target origin.
Step-by-Step Execution Flow:
-
Step 1 (Connection A - Passive TCP Relay): The client navigates to
https://target/. The attacker transparently relays the TCP traffic for Connection A. The client completes the TLS handshake directly with the real server, which presents the genuine certificateC_real. The real server sends an HTTP401 Unauthorizedwith aWWW-Authenticate: NTLMchallenge. The attacker relays these response bytes and immediately triggers a TCP FIN or RST on Connection A, rendering it non-reusable. -
Step 2 (Auth Handler Initialization): Chromium processes the
401response. Since no authentication handler exists yet,HttpAuthController::ChooseBestChallengecreates a newHttpAuthHandlerNTLMand calls itsInit()method:C++ // net/http/http_auth_handler_ntlm.cc:18-31 bool HttpAuthHandlerNTLM::Init( HttpAuthChallengeTokenizer* tok, const SSLInfo& ssl_info, const NetworkAnonymizationKey& network_anonymization_key) { auth_scheme_ = HttpAuth::AUTH_SCHEME_NTLM; score_ = 3; properties_ = ENCRYPTS_IDENTITY | IS_CONNECTION_BASED; if (ssl_info.is_valid()) x509_util::GetTLSServerEndPointChannelBinding(*ssl_info.cert, &channel_bindings_); // <-- Set ONCE return ParseChallenge(tok) == HttpAuth::AUTHORIZATION_RESULT_ACCEPT; }Since the initial connection was established with
C_real,ssl_infocontainsC_real, andchannel_bindings_is populated withtls-server-end-point:||SHA-256(C_real). -
Step 3 (Reconnection via DidDrainBodyForAuthRestart):
HttpNetworkTransactiondetermines that Connection A cannot be reused (e.g., viaHttpStreamParser::CanReuseConnection()). It invokesDidDrainBodyForAuthRestart(false):C++ // net/http/http_network_transaction.cc:603-636 void HttpNetworkTransaction::DidDrainBodyForAuthRestart(bool keep_alive) { ... if (!new_stream) { stream_->Close(true); next_state_ = STATE_CREATE_STREAM; // <-- Triggers a NEW TLS connection } ... ResetStateForAuthRestart(); // <-- Leaves auth_controllers_ untouched }Crucially,
ResetStateForAuthRestart()does not clearauth_controllers_[AUTH_SERVER](net/http/http_network_transaction.cc:2286-2300). The existing auth handler, containing the cachedchannel_bindings_derived fromC_real, is preserved for the next connection attempt. -
Step 4 (Connection B - Active TLS MITM): Chromium reconnects (
STATE_CREATE_STREAM). The attacker actively intercepts Connection B and presents the mis-issued certificateC_mitm. Because the certificate chains to a trusted CA, the TLS handshake completes successfully. The client automatically sends an NTLM Type-1 message over Connection B. The attacker forwards this Type-1 message to the real server over its own authenticated Connection C (connected to the real server usingC_real). -
Step 5 (Second Challenge Parsing): The real server responds to the attacker with an NTLM Type-2 challenge, which the attacker forwards to the client on Connection B. The client processes this response using
HttpAuthController::HandleChallengeResponse. Because a handler already exists (HaveAuth()is true), it callsHandleAnotherChallenge:C++ // net/http/http_auth_controller.cc:215-218 if (HaveAuth()) { std::string challenge_used; HttpAuth::AuthorizationResult result = HttpAuth::HandleChallengeResponse( handler_.get(), *headers, target_, disabled_schemes_, &challenge_used); // <-- No ssl_info passedThis resolves to:
C++ // net/http/http_auth_handler_ntlm.cc:33-36 HttpAuth::AuthorizationResult HttpAuthHandlerNTLM::HandleAnotherChallengeImpl( HttpAuthChallengeTokenizer* challenge) { return ParseChallenge(challenge); // <-- No access to SSLInfo, cannot refresh channel bindings }The sibling implementation
HttpAuthHandlerNegotiate::HandleAnotherChallengeImplatnet/http/http_auth_handler_negotiate.cc:250-254behaves identically, preserving the stale binding. -
Step 6 (Credential Generation & Sink): The client generates the Type-3 (Authenticate) token.
- On Windows (SSPI):
HttpAuthHandlerNTLMWin::GenerateAuthTokenImpl(andHttpAuthHandlerNegotiate) consumeschannel_bindings_verbatim and passes it to SSPI as aSECBUFFER_CHANNEL_BINDINGSstructure:C++ // net/http/http_auth_handler_ntlm_win.cc:52-60 return mechanism_.GenerateAuthToken(credentials, CreateSPN(scheme_host_port_), channel_bindings_, auth_token, net_log(), ...); - On Portable NTLMv2:
The portable path computes
MsvAvChannelBindingsas the MD5 hash ofchannel_bindings_and places it inside theAUTHENTICATE_MESSAGE:C++ // net/ntlm/ntlm_client.cc -> net/ntlm/ntlm.cc:98-106 av_pairs->emplace_back(TargetInfoAvId::kChannelBindings, MD5(channel_bindings_));
Since
channel_bindings_contains the hash ofC_real, the Type-3 message carries a binding bound toC_real, even though the active connection is Connection B (secured withC_mitm). - On Windows (SSPI):
-
Step 7 (Exploitation Sink): The client transmits the Type-3 message over Connection B. The attacker intercepts it, decodes it if necessary, and relays it over Connection C to the real server. The real server validates the
MsvAvChannelBindingsagainst the certificate of its active connection (Connection C, which isC_real). Since they match, Extended Protection validation passes, and the attacker obtains an authenticated session on Connection C as the victim.
Suggested Fix:
There are two primary ways to resolve this:
- Ensure that the authentication handler is destroyed when the underlying connection is closed on a restart. For example, call
HttpAuthController::OnConnectionClosed()inside the!new_streambranch ofHttpNetworkTransaction::DidDrainBodyForAuthRestart(bool keep_alive). This matches the proxy auth path logic. - Pass the
SSLInfodown toHttpAuth::HandleChallengeResponseand subsequent handler virtuals so that the binding is dynamically refreshed on each challenge round.
3. Technical Verification Details (Automated Audit Logs - Reviewers may skip this section)
Verbatim Critic Verdict:
The vulnerability accurately describes a bypass of Extended Protection for Authentication (EPA) / RFC 5929
tls-server-end-pointchannel bindings in Chromium's NTLM and Negotiate authentication handlers.Code review confirms that
HttpAuthHandlerNTLM::Init()andHttpAuthHandlerNegotiate::Init()computechannel_bindings_exactly once from the initial connection'sSSLInfoand never update it. During an authentication restart (e.g., if the server connection is closed after the initial 401 response),HttpNetworkTransaction::DidDrainBodyForAuthRestart()initiates a new TLS stream but preservesauth_controllers_. The existing auth handler is reused, retaining the stale channel binding.A MITM attacker holding a CA-trusted mis-issued certificate (
C_mitm) can exploit this by passively relaying the first connection (so the client binds to the real server's cert,C_real), forcing a reconnect via TCP RST, and actively MITMing the second connection withC_mitm. The client will send NTLM credentials bound toC_realover theC_mitmconnection, allowing the attacker to relay them to the real server and authenticate successfully.Severity Justification: The report suggests Medium (S2) based on the "hardening layer bypass" rule. However, according to the severity guidelines, this is a High (S1) severity vulnerability. The S1 criteria explicitly include: "HTTP auth credentials, a client certificate, or a Device-Bound-Session signature/JWT is sent to an origin other than the one it is bound to (channel-binding bypass, refresh redirect crossing sites, missing aud claim making a signature relayable)." This vulnerability is a textbook channel-binding bypass that makes HTTP auth credentials relayable. The attacker receives credentials bound to a different TLS channel (
C_real) and misuses them. No mitigating factors apply (Enterprise/Windows scoping is not a downgrade per the rubric, and SSO for whitelisted domains requires zero user interaction).Probability that the vulnerability is real, correct, and exploitable: 100%.
Codebase Investigator Audit Trails:
- Transition to HandleAuthChallenge after 401 & State Preservation:
HttpNetworkTransaction::HandleAuthChallenge()(lines 2382-2409) identifies a 401, sets target toHttpAuth::AUTH_SERVER, and delegates toauth_controllers_[target]->HandleAuthChallenge(...).- During restart,
PrepareForAuthRestart()forces a drain viaSTATE_DRAIN_BODY_FOR_AUTH_RESTART. - If a TCP RST occurs,
DoDrainBodyForAuthRestartComplete()gets a negative result (e.g.,ERR_CONNECTION_RESET), setskeep_alive = false, and invokesDidDrainBodyForAuthRestart(false). DidDrainBodyForAuthRestart(bool keep_alive)seesnew_streamis null, closes the stream (stream_->Close(true)), and sets state toSTATE_CREATE_STREAM.ResetStateForAuthRestart()(lines 2286-2305) is then called, which clears transient state but intentionally omitsauth_controllers_.
- Type-3 Sink and
MsvAvChannelBindingsConstruction:HttpAuthHandlerNTLMWin::GenerateAuthTokenImpl()leverages SSPIInitializeSecurityContextwhich consumes the staleSECBUFFER_CHANNEL_BINDINGSpayload.- The portable implementation in
net/ntlm/ntlm.cchashes the stalechannel_bindings_string (MD5 of the 20-byte struct header + string) and stores it as anAvPairunderTargetInfoAvId::kChannelBindings(value 0x000A).
Mitigations / Validators Checked:
- Resetting Auth Controllers on Reconnect:
HttpNetworkTransaction::ResetStateForAuthRestart()resets several fields but leavesauth_controllers_untouched. - Connection Loss Notifications:
HttpAuthController::OnConnectionClosed()is specifically implemented to clear connection-bound handler state (InvalidateCurrentHandler(INVALIDATE_HANDLER)), but it is only called on the proxy connect path (net/http/http_proxy_connect_job.cc:863). It is not called during normal server authentication restarts insideHttpNetworkTransaction. - Updating
SSLInfoin Later Rounds: The signatures ofHttpAuth::HandleChallengeResponse()andHttpAuthHandler::HandleAnotherChallenge()do not acceptSSLInfo, making it architecturally impossible for the handler to learn about a change in the TLS certificate on subsequent challenges. - Portable EPA Default Configuration: Checked
NtlmFeatures::is_epa_enabled, which defaults to true (if NtlmV2 is enabled), meaning the portable path is also fully vulnerable.
Environmental Assumptions:
- The initial
401response body on Connection A is fully delivered before the attacker's TCP close, soHandleAuthChallengeruns rather than the request erroring. This is fully feasible: the passive relay forwards the server's bytes verbatim, then closes;HttpStreamParsertreats this as complete-response-then-not-reusable. - On the portable path,
NtlmFeatures::is_epa_enabledis true (default perntlm::NtlmFeaturesconstruction withNtlmV2Enabled()); on Windows, SSPI unconditionally consumesSECBUFFER_CHANNEL_BINDINGSwhen non-empty. Both verified in code.
Evaluated with Chrome root at commit: f4cb78b4ec077b7f51b504af9350cdc166d10c2f
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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.
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 authentication handler caches the TLS channel binding during Init() and is not reinitialised or refreshed when the underlying connection is replaced during an authentication restart.
Impact
An on-path attacker with a CA-trusted mis-issued certificate could relay the victim's NTLM or Negotiate credentials to the real server and authenticate as the victim, bypassing Extended Protection for Authentication.
What the attacker needed
On-path network position; CA-trusted mis-issued certificate for target; target in AuthServerAllowlist; server requires Extended Protection
The fix
The authentication handler should be destroyed when the connection is closed on an auth restart, or the SSLInfo should be passed to later challenge rounds so the channel binding is refreshed.
How it was found
- The attacker passively relays the first TLS connection so the client completes the handshake with the real server and receives a 401 NTLM challenge.
- The attacker closes that connection with a TCP FIN or RST after relaying the 401 response.
- Chromium creates the NTLM handler and computes channel bindings from the real server's certificate.
- Chromium reconnects, and the attacker actively intercepts the new connection with a mis-issued but CA-trusted certificate.
- The client sends NTLM messages over the attacker's connection; the attacker relays them to the real server.
- The real server validates the channel binding against its own certificate and accepts the relayed 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 browser logs into a website using Windows single sign-on, it can tie the login to the website's TLS certificate so that a network attacker cannot simply forward the login. This report says Chromium only checks that certificate once, at the start. If the connection drops and reconnects, the browser keeps using the old certificate's check, so an attacker who can intercept traffic and has a trusted certificate for the site could pass the login on to the real server.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.