Externally controlled reference in QUIC (CVE-2026-78966)
Chrome's QUIC client fails to validate the IP address and port in a server-supplied preferred_address transport parameter, allowing a malicious QUIC server to make the victim's browser send UDP packets to internal or restricted targets. This enables blind UDP port scanning and limited SSRF with up to 20 bytes of attacker-controlled payload.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A malicious QUIC server can supply a preferred_address transport parameter pointing to arbitrary internal IPs and restricted ports. On platforms where kMigrateSessionsOnNetworkChangeV2 is enabled (like Android), the resulting UDP socket bypasses IsPortAllowedForIpEndpoint checks. This allows attackers to send up to 20 bytes of arbitrary UDP payload to localhost or internal network services, and perform blind UDP port scanning.
Affected files:
net/quic/quic_chromium_client_session.ccnet/socket/udp_client_socket.ccnet/quic/quic_session_pool.ccnet/third_party/quiche/src/quiche/quic/core/quic_config.ccnet/third_party/quiche/src/quiche/quic/core/crypto/transport_parameters.cc
Estimated timestamp from git blame: 2024-10-15
Description
A potential vulnerability exists in Chrome's handling of the IETF QUIC preferred_address transport parameter. A malicious QUIC server can provide an alternative IP address and port for the client to migrate its connection to. Chrome's QUIC implementation attempts to validate this server-provided address by sending encrypted 1-RTT QUIC PATH_CHALLENGE packets.
However, the implementation fails to perform adequate validation on the target IP and port, bypassing both Local/Private Network Access (LNA/PNA) boundaries and Chrome's restricted port list (e.g., ports 53, 111). This allows a remote attacker to trigger unsolicited UDP traffic to arbitrary internal or external targets, with partial control over the UDP payload.
Technical Details
-
Missing IP Validation: When the
preferred_addressis received,QuicChromiumClientSession::OnServerPreferredAddressAvailableis triggered (net/quic/quic_chromium_client_session.cc:4310). It checks if the connection is direct but fails to enforce any LNA/PNA policy or IP blocklist validations against the new server-provided IP address. -
Bypassed Port Restrictions: To send the probe,
QuicSessionPool::ConnectAndConfigureSocketis called. On platforms wherefeatures::kMigrateSessionsOnNetworkChangeV2is enabled (which defaults to true on Android pernet/base/features.cc:299), the code usesConnectUsingNetworkAsyncorConnectUsingDefaultNetworkAsyncinnet/socket/udp_client_socket.cc. Crucially, unlike the standardUDPClientSocket::Connectmethod, these specialized methods do not callIsPortAllowedForIpEndpoint. This allows the socket to bind and connect to restricted ports, including those on localhost. -
Payload Control (SSRF): The client sends
PATH_CHALLENGEpackets to the target. Because this is an established connection, a 1-RTT "Short Header" QUIC packet is used. The short header starts with a 1-byte header, immediately followed by the Destination Connection ID. The attacker fully controls the up to 20-byteconnection_idsupplied in thepreferred_addressparameter. This means the first ~21 bytes of the UDP payload are attacker-controlled (1 byte header + 20 bytes connection ID), enabling blind UDP SSRF. -
Internal Port Scanning Oracle: If the target internal port is closed, the victim's OS may respond with an ICMP Port Unreachable message, causing an immediate failure of the path validation. If the port is open/filtered, the client will send repeated probes until a timeout occurs. The attacker's server can observe this timing difference (e.g., via the client retiring the connection ID) to reliably scan the victim's internal network for active UDP services.
Potential Reproduction Steps
Note: These are theoretical steps as we do not yet have a working PoC.
- Set up an HTTPS/3 (QUIC) server with a valid TLS certificate.
- Configure the server to include the
preferred_addresstransport parameter during the handshake, pointing to an internal target (e.g.,127.0.0.1:111or10.0.0.5:53). Set theconnection_idto the desired UDP payload prefix. - Navigate to the server using Chrome on Android (where
kMigrateSessionsOnNetworkChangeV2is enabled). - Observe via packet capture that Chrome attempts to connect and send UDP packets to the specified internal address and restricted port.
Suggested Fix
- Enforce Port Restrictions: Add a call to
IsPortAllowedForIpEndpoint(address)inUDPClientSocket::ConnectUsingNetworkandUDPClientSocket::ConnectUsingDefaultNetworkinnet/socket/udp_client_socket.ccto ensure restricted ports cannot be targeted, even during network migrations. - Enforce LNA/PNA Policies: Implement IP address validation in
QuicChromiumClientSession::OnServerPreferredAddressAvailableto block migrations to internal/private IP ranges if the original connection was to a public IP, adhering to Private Network Access guidelines.
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.
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 QUIC client's migration code path uses socket connection methods that skip the IsPortAllowedForIpEndpoint check and does not enforce LNA/PNA IP validation on the server-provided preferred address.
Impact
A remote attacker could send up to 20 bytes of arbitrary UDP payload to localhost or internal network services and perform blind UDP port scanning, though the text notes this is theoretical and no working proof of concept exists.
What the attacker needed
Chrome on Android with [redacted] enabled; Victim visits a malicious QUIC server; Attacker controls a QUIC server with valid TLS certificate
The fix
The fix should enforce port restrictions by calling IsPortAllowedForIpEndpoint in the network migration socket methods and add IP address validation in OnServerPreferredAddressAvailable to block migrations to internal/private IP ranges.
How it was found
- Set up an HTTPS/3 (QUIC) server with a valid TLS certificate.
- Configure the server to include the preferred_address transport parameter pointing to an internal target and set the connection_id to the desired UDP payload prefix.
- Navigate to the server using Chrome on Android where [redacted] is enabled.
- Observe via packet capture that Chrome attempts to connect and send UDP packets to the specified internal address and restricted port.
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.
QUIC is a modern transport protocol used by Chrome. A server can tell the browser to switch to a different address, but Chrome does not check whether that address is internal or on a blocked port. An attacker can abuse this to make the browser send small UDP packets to services inside the victim's network, which can be used to scan for open ports.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.