Aller au contenu principal
AntidetectLab
← Retour au Blog
Proxies & Hygiène Réseau

WebRTC STUN & EDNS0 Client-Subnet DNS Leaks

Where ICE addresses, resolver addresses and optional client-subnet prefixes come from.

Par AntidetectLab Research Team (Ingénierie Protocoles, Silicium & Forensique Réseau) · 2026-10-20 · 5 min de lecture
DUAL-PLANE EGRESS // ISP ASN + UDP STUN + ECS /24 RFC 8489 · RFC 7871 PROFILE NIC tproxy / TUN VPN_BIT = 0 CLEAN RESIDENTIAL / 4G ASN Type: ISP (0% Hosting) /24 Contagion Density: 0.00 SEPARATE EGRESS PATH UDP STUN 3478 Observed EDNS0 Option-8 /24 Prefix

Fuites WebRTC STUN et DNS EDNS0 Client-Subnet

Trace les fuites entre HTTPS, paquets UDP STUN RFC 8489 (dont FINGERPRINT 0x8028), candidats ICE mDNS et masques de préfixe EDNS0 Option-8 RFC 7871.

Points Techniques Clés
  • Un proxy purement HTTP redirige TCP 443 tout en laissant UDP 3478 STUN et le résolveur DNS local sortir par l’interface hôte.
  • RFC 8489 s’appuie sur le cookie 0x2112A442, XOR-MAPPED-ADDRESS (0x0020) et FINGERPRINT (0x8028 CRC-32 XOR 0x5354554e).
  • L’option 8 EDNS0 (RFC 7871) encode SOURCE PREFIX-LENGTH et SCOPE PREFIX-LENGTH dans les enregistrements OPT (TYPE=41).

Different network paths

Technical Summary: HTTPS APIs observe only the TCP/QUIC connection terminating at the web server, whereas WebRTC ICE exchanges use UDP STUN packets and recursive DNS queries traverse upstream resolvers. A misconfigured split tunnel can mask TCP traffic while leaking the host origin over UDP or DNS.

An HTTPS request, a WebRTC ICE exchange, and an authoritative DNS query can traverse three completely independent routing planes. HTTP-only proxy extensions and browser-level PAC scripts redirect https:// traffic through a remote proxy socket while leaving raw UDP sockets and OS-level stub resolvers bound directly to the physical host NIC.

Egress PlaneProtocol & PortCommon Split-Tunnel Leak ModeObserved Field
HTTP / TLS IngressTCP 443 / QUIC 443Baseline exit IP seen by web originHTTP peer IP & JA4/H2
WebRTC ICE / STUNUDP 3478 (RFC 8489)Browser sends STUN Binding Request bypassing HTTP-only proxysrflx candidate & STUN mapped IP
Authoritative DNS + ECSUDP/TCP 53 (RFC 7871)Local ISP resolver forwards truncated client prefix in Option 8Resolver IP & EDNS0 ECS prefix

STUN observations

Technical Summary: A STUN server extracts the client's public NAT mapping via the 20-byte RFC 8489 Binding Response header and XOR-MAPPED-ADDRESS attribute. Comparing the STUN-observed peer IP against the HTTP request IP and ICE SDP candidates exposes unproxied UDP egress immediately.

Under RFC 8489, every STUN Binding Request carries a 20-byte header containing the fixed 32-bit magic cookie 0x2112A442 and a 96-bit transaction ID, optionally concluded by the FINGERPRINT attribute (0x8028), whose 32-bit value is the CRC-32 over the preceding STUN message XORed with 0x5354554e to distinguish STUN packets from multiplexed media payloads. The STUN responder replies with attribute 0x0020 (XOR-MAPPED-ADDRESS), XORing the port with 0x2112 and the IPv4 address with 0x2112A442 (or IPv6 with cookie plus transaction ID). Inspecting these observations on the WebRTC report reveals whether UDP traffic followed the proxy route or leaked via the host WAN interface.

// Browser-side inspection of WebRTC ICE candidate types & mDNS/LAN exposure
async function inspectIceCandidates() {
  const pc = new RTCPeerConnection({ iceServers: [{ urls: 'stun:stun.antidetectlab.com:3478' }] });
  const found = [];
  pc.onicecandidate = (ev) => { if (ev.candidate) found.push(ev.candidate.candidate); };
  pc.createDataChannel('probe');
  await pc.setLocalDescription(await pc.createOffer());
  await new Promise((r) => setTimeout(r, 900));
  pc.close();
  return found;
}

When ICE data is unavailable

Technical Summary: Browser privacy flags, corporate firewalls, or enterprise policies can prevent ICE candidate gathering or mask host addresses with .local mDNS names. Empty ICE candidate lists represent unavailable candidate evidence rather than automatic proof of tampering.

A browser policy, privacy setting, or UDP-blocking firewall may prevent ICE gathering or restrict candidates to relay or RFC 8828 mDNS obfuscation (<uuid>.local). No candidates means the test has no candidate observations. It does not establish that the user is automated or that every connection is private, and AntidetectLab records ICE support, empty gathering, and policy denial as distinct states.

EDNS Client Subnet

Technical Summary: Under RFC 7871, recursive DNS resolvers may append EDNS0 Option Code 8 containing a truncated client IP prefix inside the OPT pseudo-record sent to authoritative nameservers. When present, an ECS prefix on a different network from the HTTP exit IP reveals local resolver egress.

A recursive resolver may attach part of the requester's address to an upstream query using EDNS option 8 inside the DNS OPT pseudo-RR (TYPE=41). The wire structure encodes FAMILY (1 for IPv4, 2 for IPv6), SOURCE PREFIX-LENGTH (indicating how many leading bits of the client IP were truncated and forwarded, commonly /24 for IPv4 or /56 for IPv6), SCOPE PREFIX-LENGTH (returned by the authoritative server to declare the prefix mask over which the response may be cached, set to 0 in client queries), and zero-padded address octets beyond the source prefix boundary. Even when a proxy hides the browser's HTTP address, an ISP recursive resolver that forwards Option 8 exposes the client's originating subnet directly to authoritative nameservers. See RFC 7871.

During an authoritative wildcard DNS probe, AntidetectLab pairs a unique per-session subdomain token with both IPv4 and IPv6 target lookups so the authoritative server correlates the exact recursive resolver address and optional ECS Option-8 client prefix back to the active browser visit without cross-session interference.

Checking both resolver IP and ECS Option-8 side by side separates benign CDN anycast DNS routing from genuine client subnet exposure. Recording whether DNS traffic traverses an encrypted DoH/DoT upstream or an unencrypted UDP port 53 forwarder clarifies exactly where residential ISP metadata enters the resolution path.

Comparing address fields

Technical Summary: Validating network hygiene requires comparing five distinct addresses together: the HTTP ingress IP, browser ICE candidates, server-observed STUN IP, recursive DNS resolver IP, and optional ECS prefix. Only same-family mismatches or explicit RFC 1918 LAN exposure justify flagging a path divergence.

Compare the HTTP peer address, ICE candidates, any matched STUN observation, the recursive resolver address, and any supplied ECS prefix. Note the address family (IPv4 vs IPv6) and the capture point: a public recursive resolver such as Cloudflare or Google DNS routing through a nearby anycast PoP does not by itself establish a client IP leak.

Observed Address CombinationTechnical ClassificationCorrective Action
HTTP IP == STUN UDP IP == ECS PrefixClean aligned dual-plane egressNo change required
HTTP IP != STUN Public IP (same family)UDP split-tunnel leak (WEBRTC_STUN_PUBLIC_IP_LEAK)Route UDP over SOCKS5 UDP ASSOCIATE or TUN
RFC 1918 LAN IP in ICE CandidateLocal interface address exposed (WEBRTC_LAN_IP_EXPOSED)Enable mDNS ICE obfuscation or proxy-only policy
ECS Option-8 Prefix != HTTP SubnetLocal ISP resolver leak (DNS_ECS_SUBNET_MISMATCH)Force DNS resolution through proxy exit / DoH

Recording missing data

Technical Summary: Server-side UDP STUN correlation and authoritative wildcard DNS zones require dedicated VPS/edge listeners and delegated subdomains. When deployed on serverless HTTP edges without UDP listeners, missing wire observations remain explicitly marked unavailable.

If the WebRTC report or DNS report lacks a measurement, record that status. The result depends on browser support, route availability, and deployment of the receiving service. For consistent tunnel hygiene, route both TCP and UDP via TUN/VPN or SOCKS5 UDP ASSOCIATE and enforce remote DNS resolution through the tunnel exit.

When running behind serverless HTTP edges without dedicated UDP listeners, client-side RTCPeerConnection ICE candidate gathering still executes directly inside the browser against configured STUN endpoints, exposing host, srflx, and relay scopes cleanly while marking server-side UDP correlation unavailable. Operators validating high-stakes multi-hop proxy chains should verify both IPv4 and IPv6 egress paths so an unproxied IPv6 interface cannot bypass an IPv4-only proxy rule.

Recherches Forensiques Associées

SILICON AUDIT // ARMv9-A + iOS 18 WDA WebAssembly sample TOUCH: 10pt TTL=64 · TPROXY ARM64 12-LAYER HAL ADRENO / APPLE TOUCH: 0pt NaN sample
Mobile & Téléphones Cloud

Mobile Browsers, Cloud Phones & Real Devices

Navigateurs mobiles, cloud phones et appareils physiques

How to interpret touch, viewport, codec and sensor data in a mobile browser.

2026-11-24 8 min de lecture
KERNEL ENGINE // CHROMIUM BLINK + GECKO NSS TELEMETRY SAMPLE VIEW Engine[0]: CloakBrowser Skia C++ 4x TextMetrics Linearity (<= 0.015) WebGPU Adapter == WebGL2 Angle D3D11 IDAT Zlib Stream: DETERMINISTIC Runtime.enable Leaks: 0 / 5 Realms Camoufox Gecko NSS + Isolated Profiles P-01 sample P-02 sample P-03 sample ZERO PROTOTYPE WRAPPERS · C++ NATIVE
Navigateurs Antidetect

TeraLogin, GoLogin, Multilogin & GeeLark Audit

Audit TeraLogin, GoLogin, Multilogin et GeeLark

Which records a reproducible comparison would need, and what the lab has published.

2026-11-26 5 min de lecture
KERNEL ENGINE // CHROMIUM BLINK + GECKO NSS TELEMETRY SAMPLE VIEW Engine[0]: CloakBrowser Skia C++ 4x TextMetrics Linearity (<= 0.015) WebGPU Adapter == WebGL2 Angle D3D11 IDAT Zlib Stream: DETERMINISTIC Runtime.enable Leaks: 0 / 5 Realms Camoufox Gecko NSS + Isolated Profiles P-01 sample P-02 sample P-03 sample ZERO PROTOTYPE WRAPPERS · C++ NATIVE
Navigateurs Antidetect

Testing Browser Fingerprint Parity Across Tools

Tester la parité d’empreinte entre navigateurs antidétect

A guide to repeatable browser tests, coverage and product-level scoring.

2026-11-21 5 min de lecture