Skip to content
Crypto Advisory Advanced CVE-2026-85043

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.cc
  • net/http/http_auth_handler_negotiate.cc
  • net/http/http_network_transaction.cc
  • net/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_mitm for the target origin.

Step-by-Step Execution Flow:

  1. 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 certificate C_real. The real server sends an HTTP 401 Unauthorized with a WWW-Authenticate: NTLM challenge. The attacker relays these response bytes and immediately triggers a TCP FIN or RST on Connection A, rendering it non-reusable.

  2. Step 2 (Auth Handler Initialization): Chromium processes the 401 response. Since no authentication handler exists yet, HttpAuthController::ChooseBestChallenge creates a new HttpAuthHandlerNTLM and calls its Init() 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_info contains C_real, and channel_bindings_ is populated with tls-server-end-point: || SHA-256(C_real).

  3. Step 3 (Reconnection via DidDrainBodyForAuthRestart): HttpNetworkTransaction determines that Connection A cannot be reused (e.g., via HttpStreamParser::CanReuseConnection()). It invokes DidDrainBodyForAuthRestart(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 clear auth_controllers_[AUTH_SERVER] (net/http/http_network_transaction.cc:2286-2300). The existing auth handler, containing the cached channel_bindings_ derived from C_real, is preserved for the next connection attempt.

  4. Step 4 (Connection B - Active TLS MITM): Chromium reconnects (STATE_CREATE_STREAM). The attacker actively intercepts Connection B and presents the mis-issued certificate C_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 using C_real).

  5. 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 calls HandleAnotherChallenge:

    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 passed
    

    This 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::HandleAnotherChallengeImpl at net/http/http_auth_handler_negotiate.cc:250-254 behaves identically, preserving the stale binding.

  6. Step 6 (Credential Generation & Sink): The client generates the Type-3 (Authenticate) token.

    • On Windows (SSPI): HttpAuthHandlerNTLMWin::GenerateAuthTokenImpl (and HttpAuthHandlerNegotiate) consumes channel_bindings_ verbatim and passes it to SSPI as a SECBUFFER_CHANNEL_BINDINGS structure:
      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 MsvAvChannelBindings as the MD5 hash of channel_bindings_ and places it inside the AUTHENTICATE_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 of C_real, the Type-3 message carries a binding bound to C_real, even though the active connection is Connection B (secured with C_mitm).

  7. 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 MsvAvChannelBindings against the certificate of its active connection (Connection C, which is C_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:

  1. Ensure that the authentication handler is destroyed when the underlying connection is closed on a restart. For example, call HttpAuthController::OnConnectionClosed() inside the !new_stream branch of HttpNetworkTransaction::DidDrainBodyForAuthRestart(bool keep_alive). This matches the proxy auth path logic.
  2. Pass the SSLInfo down to HttpAuth::HandleChallengeResponse and 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-point channel bindings in Chromium's NTLM and Negotiate authentication handlers.

Code review confirms that HttpAuthHandlerNTLM::Init() and HttpAuthHandlerNegotiate::Init() compute channel_bindings_ exactly once from the initial connection's SSLInfo and 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 preserves auth_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 with C_mitm. The client will send NTLM credentials bound to C_real over the C_mitm connection, 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:

  1. Transition to HandleAuthChallenge after 401 & State Preservation:
    • HttpNetworkTransaction::HandleAuthChallenge() (lines 2382-2409) identifies a 401, sets target to HttpAuth::AUTH_SERVER, and delegates to auth_controllers_[target]->HandleAuthChallenge(...).
    • During restart, PrepareForAuthRestart() forces a drain via STATE_DRAIN_BODY_FOR_AUTH_RESTART.
    • If a TCP RST occurs, DoDrainBodyForAuthRestartComplete() gets a negative result (e.g., ERR_CONNECTION_RESET), sets keep_alive = false, and invokes DidDrainBodyForAuthRestart(false).
    • DidDrainBodyForAuthRestart(bool keep_alive) sees new_stream is null, closes the stream (stream_->Close(true)), and sets state to STATE_CREATE_STREAM.
    • ResetStateForAuthRestart() (lines 2286-2305) is then called, which clears transient state but intentionally omits auth_controllers_.
  2. Type-3 Sink and MsvAvChannelBindings Construction:
    • HttpAuthHandlerNTLMWin::GenerateAuthTokenImpl() leverages SSPI InitializeSecurityContext which consumes the stale SECBUFFER_CHANNEL_BINDINGS payload.
    • The portable implementation in net/ntlm/ntlm.cc hashes the stale channel_bindings_ string (MD5 of the 20-byte struct header + string) and stores it as an AvPair under TargetInfoAvId::kChannelBindings (value 0x000A).

Mitigations / Validators Checked:

  • Resetting Auth Controllers on Reconnect: HttpNetworkTransaction::ResetStateForAuthRestart() resets several fields but leaves auth_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 inside HttpNetworkTransaction.
  • Updating SSLInfo in Later Rounds: The signatures of HttpAuth::HandleChallengeResponse() and HttpAuthHandler::HandleAnotherChallenge() do not accept SSLInfo, 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 401 response body on Connection A is fully delivered before the attacker's TCP close, so HandleAuthChallenge runs rather than the request erroring. This is fully feasible: the passive relay forwards the server's bytes verbatim, then closes; HttpStreamParser treats this as complete-response-then-not-reusable.
  • On the portable path, NtlmFeatures::is_epa_enabled is true (default per ntlm::NtlmFeatures construction with NtlmV2Enabled()); on Windows, SSPI unconditionally consumes SECBUFFER_CHANNEL_BINDINGS when 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.

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

  1. The attacker passively relays the first TLS connection so the client completes the handshake with the real server and receives a 401 NTLM challenge.
  2. The attacker closes that connection with a TCP FIN or RST after relaying the 401 response.
  3. Chromium creates the NTLM handler and computes channel bindings from the real server's certificate.
  4. Chromium reconnects, and the attacker actively intercepts the new connection with a mis-issued but CA-trusted certificate.
  5. The client sends NTLM messages over the attacker's connection; the attacker relays them to the real server.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.