Incorrect authorization in Network (CVE-2026-79199)
Chromium's multicast check returns false for IPv4-mapped IPv6 multicast addresses, so the Direct Sockets API treats them as public rather than local. An attacker could then open a UDP socket to such an address without the local network permission prompt and silently probe or talk to devices on the user's network.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
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 net::IPAddress::IsMulticast() incorrectly returns false for IPv4-mapped IPv6 multicast addresses, such as ::ffff:239.255.255.250. In the Direct Sockets API, this flaw allows these addresses to bypass the LOCAL_NETWORK permission prompt and the direct-sockets-private Permissions Policy. A potential attacker could exploit this to silently discover and interact with devices on the user's local network via multicast protocols.
Affected files:
net/base/ip_address.cccontent/browser/direct_sockets/direct_sockets_service_impl.cc
Estimated timestamp from git blame: 2025-09-03
Potential Vulnerability: Direct Sockets Permission Bypass
A potential vulnerability has been identified in how Chromium classifies IPv4-mapped IPv6 multicast addresses, leading to a security check bypass in the Direct Sockets API.
Root Cause
The primary issue resides in net::IPAddress::IsMulticast() within net/base/ip_address.cc. The current implementation for IPv6 addresses only checks if the first byte is 0xff. However, for IPv4-mapped IPv6 addresses (which follow the format ::ffff:a.b.c.d), the first byte is 0x00 regardless of whether the mapped IPv4 address is a multicast address.
// net/base/ip_address.cc
bool IPAddress::IsMulticast() const {
if (IsIPv4()) {
uint8_t first_byte = ip_address_[0];
return first_byte >= 224 && first_byte <= 239;
}
if (IsIPv6()) {
return ip_address_[0] == 0xff; // Returns false for IPv4-mapped multicast
}
return false;
}
This classification is critical for the Direct Sockets API in content/browser/direct_sockets/direct_sockets_service_impl.cc. The function RequiresPrivateNetworkAccess relies on IsMulticast() to identify endpoints that require high-privilege permissions:
// content/browser/direct_sockets/direct_sockets_service_impl.cc
bool RequiresPrivateNetworkAccess(const net::AddressList& addresses) {
return std::ranges::any_of(
addresses.endpoints(), [](const net::IPEndPoint& ip_endpoint) {
return network::IPAddressToIPAddressSpace(ip_endpoint.address()) ==
network::mojom::IPAddressSpace::kLocal ||
ip_endpoint.address().IsMulticast();
});
}
Because IsMulticast() returns false for mapped addresses, and network::IPAddressToIPAddressSpace() treats these multicast ranges as kPublic (since they are not in the standard private unicast ranges), RequiresPrivateNetworkAccess returns false. This causes the Browser process to skip the LOCAL_NETWORK permission prompt and the direct-sockets-private Permissions Policy check.
Potential Trigger Path
- A potential attacker creates an Isolated Web App (IWA) with the
direct-socketspermission enabled. - The IWA executes JavaScript to open a UDP socket to an IPv4-mapped IPv6 multicast address literal:
new UDPSocket({ remoteAddress: '::ffff:239.255.255.250', remotePort: 1900 }). - The Browser process resolves the literal and calls
GetRequiredPermissions, which returns an empty list due to theIsMulticast()flaw. - The Browser skips user permission prompts and policy enforcement, granting the socket access.
- On dual-stack systems (Linux, macOS, Windows), the underlying OS networking stack will correctly emit IPv4 multicast packets for these mapped addresses.
Impact
An attacker could silently perform local network reconnaissance (e.g., via SSDP or mDNS) and interact with local network devices without the user's knowledge or consent, bypassing the intended security boundaries of the Direct Sockets API.
Suggested Fix
Update net::IPAddress::IsMulticast() in net/base/ip_address.cc to explicitly handle IPv4-mapped IPv6 addresses by checking the mapped IPv4 portion:
bool IPAddress::IsMulticast() const {
if (IsIPv4()) {
uint8_t first_byte = ip_address_[0];
return first_byte >= 224 && first_byte <= 239;
}
if (IsIPv4MappedIPv6()) {
return ConvertIPv4MappedIPv6ToIPv4(*this).IsMulticast();
}
if (IsIPv6()) {
return ip_address_[0] == 0xff;
}
return false;
}
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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 multicast check for IPv6 only looks at the first byte, which is zero for IPv4-mapped addresses, so mapped multicast addresses are misclassified as public unicast.
Impact
An attacker could silently carry out local network reconnaissance and interact with local devices without consent, though the text notes this depends on dual-stack systems and is a potential issue rather than a demonstrated exploit.
What the attacker needed
An Isolated Web App with direct-sockets; dual-stack operating system; no user interaction needed
The fix
The multicast check should explicitly handle IPv4-mapped IPv6 addresses by converting them and testing the mapped IPv4 address.
How it was found
- Create an Isolated Web App that has the direct-sockets permission.
- Open a UDP socket to an IPv4-mapped IPv6 multicast address literal.
- The browser resolves the literal and finds no required permissions because of the flawed check.
- The browser skips the permission prompt and policy enforcement and grants the socket.
- On dual-stack systems the operating system sends real IPv4 multicast packets.
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.
Some addresses are reserved for sending one message to many machines at once, called multicast. Chromium is meant to ask the user before a web app sends traffic to the local network, but it failed to recognise one written form of these addresses, so the question was skipped. A malicious app could then quietly look for devices on the same network.
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.