CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-XVG2-CGV6-6H7V

GHSA-XVG2-CGV6-6H7V: Local Traffic Interception and Information Disclosure via Improper DNS Block Responses in netfoil

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 29, 2026·6 min read·27 visits

Executive Summary (TL;DR)

netfoil DNS proxy returned 0.0.0.0 (NOERROR) for blocked domains, causing Linux systems to route traffic to localhost where local services could intercept credentials.

A protection mechanism failure in the netfoil DNS proxy prior to version 0.4.0 causes blocked domains to resolve to null IP addresses (0.0.0.0 or ::) with a NOERROR status instead of NXDOMAIN. On Linux systems, connections to these addresses are routed to the loopback interface (localhost), allowing local processes to intercept sensitive HTTP traffic, including authorization headers and session cookies, intended for the blocked domains.

Vulnerability Overview

The Go-based minimal DNS proxy netfoil provides domain-level filtering to block trackers, ads, and malicious sites. Prior to version 0.4.0, the proxy failed to implement secure domain blocking mechanics, leading to a severe protection mechanism failure classified under CWE-693.\n\nInstead of returning a standard Non-Existent Domain (NXDOMAIN) status, netfoil returned a successful NOERROR DNS response containing dummy A, AAAA, or HTTPS records. These dummy records resolved to null IP addresses (0.0.0.0 or ::), signaling to the querying application that the domain was active and reachable.\n\nThis behavior exposes clients, especially those on Linux platforms, to local traffic interception. When client applications attempt to connect to the resolved null IPs, the OS kernel routes the requests back to the local loopback interface (localhost). Consequently, any unprivileged local process listening on the target ports can intercept sensitive transaction details, including session cookies and authorization tokens, originally intended for the blocked external domain.

Root Cause Analysis

The root cause of the vulnerability lies in the implementation of the generateBlockResponse function within dns/filter.go. Instead of dropping the query or returning an error status, the function explicitly constructed a DNS answer containing an active resource record pointing to ipv4Null (0.0.0.0) or ipv6Null (::) and marked the response header flags with ResponseCodeNoError.\n\nWhen a client operating system receives this response, the local resolver interprets it as a fully valid, successful domain resolution. On Linux platforms, the kernel's routing table treats connections to 0.0.0.0 or :: as aliases for the loopback address (127.0.0.1 or ::1). Therefore, instead of terminating the connection attempt or generating a connection-refused error, the client browser or application initiates a three-way TCP handshake with localhost.\n\nThis design flaw introduces a severe vulnerability when local services run on matching ports (e.g., 80 or 443). Because the client browser believes it is communicating with the legitimate external host (for example, analytics.company.com), it transmits standard HTTP headers, cookies, and tokens over this loopback connection. An unprivileged local daemon or web server can accept these connections and capture high-value credentials.

Code Analysis

The vulnerable version of dns/filter.go constructed the blocked response by setting the RCODE to ResponseCodeNoError and appending dummy IPv4 and IPv6 null values in the answers slice:\n\ngo\n// Vulnerable Implementation\nfunc generateBlockResponse(question Question) *Response {\n\tdomain := question.Name\n\trecordType := question.Type\n\n\tvar response *Response\n\tflags := Flags{\n\t\tRCODE: ResponseCodeNoError, // ERROR: Signals successful resolution\n\t}\n\n\tif recordType == RecordTypeA || recordType == RecordTypeAAAA {\n\t response = &Response{\n\t Flags: flags,\n\t Answers: []Answer{\n\t {\n\t Name: domain,\n\t Type: recordType,\n\t Class: ClassTypeIN,\n\t TTL: defaultTTL,\n\t IPv4: ipv4Null, // 0.0.0.0\n\t IPv6: ipv6Null, // ::\n\t },\n\t },\n\t }\n\t} // ... HTTPS record logic also used ipv4Null / ipv6Null\n\n\nIn version 0.4.0, the package was refactored to remove the creation of synthetic resource records entirely. The updated logic changes the response code to ResponseCodeNXDomain and sets the answers to nil:\n\ngo\n// Patched Implementation in Commit 891d3513c77999a9deef9f23506807d9653ee448\nfunc generateBlockResponse() *Response {\n\tvar response *Response\n\tflags := Flags{\n\t\tRCODE: ResponseCodeNXDomain, // FIX: Informs client the domain does not exist\n\t}\n\n\tresponse = &Response{\n\t Flags: flags,\n\t Answers: nil, // FIX: Empty answer block forces connection failure\n\t}\n\n\treturn response\n}\n\n\nThis patch completely eliminates the routing of blocked requests to localhost. The client's operating system resolver instantly aborts connection attempts when encountering an NXDOMAIN response code, ensuring that no local ports are contacted.

Exploitation & Attack Scenarios

Exploitation of GHSA-XVG2-CGV6-6H7V is straightforward and requires no active privileges or authentication. Below is a representation of the routing flow during an exploitation attempt:\n\nmermaid\ngraph LR\n Client["Client App / Browser"] -->|"1. Query: tracker.com"| Proxy["Vulnerable netfoil"]\n Proxy -->|"2. Response: 0.0.0.0 (NoError)"| Client\n Client -->|"3. TCP Handshake to 0.0.0.0:80"| Kernel["Linux Kernel Routing"]\n Kernel -->|"4. Redirects connection"| Localhost["Local Listener (Port 80/443)"]\n\n\nAn attacker operating on the same machine as the victim (e.g., in a multi-user environment or via a malicious low-privilege script) can bind to the target port on localhost (such as 8080 or 80). When the victim's application triggers a background request to a blocked tracker, netfoil resolves the domain to 0.0.0.0, routing the traffic directly into the attacker's listener.\n\nOnce connected, the victim's client transmits a fully populated HTTP request. Since the client thinks it is communicating with the legitimate domain, the request includes active Session IDs, Bearer tokens, and Authorization headers. The attacker can log these headers to hijack sessions or gain unauthorized API access.

Security Impact Assessment

The security impact of this vulnerability is significant, particularly in development, corporate, or shared Linux environments where netfoil is deployed. By resolving blocked domains to local loopback addresses, the proxy undermines the security isolation between external web services and local applications.\n\nFurthermore, this flaw enables Same-Origin Policy (SOP) bypasses. Because the browser continues to map the domain name to the request, cookies scoped to the blocked domain are transmitted to localhost, allowing local malicious pages or applications to execute Cross-Site Request Forgery (CSRF) or Server-Side Request Forgery (SSRF) actions against services running on the loopback interface.\n\nThe CVSS v4.0 score is assessed at 7.4 (High), reflecting high confidentiality and integrity impacts on the affected host, with a low attack complexity. Although exploitation relies on specific local state conditions, the automated nature of modern web browsers makes exploitation highly reliable once those conditions are met.

Remediation & Patch Completeness

To remediate this issue, administrators and developers must upgrade netfoil to version 0.4.0 or later. This version incorporates the correct NXDOMAIN behavior, which stops DNS resolution on the client side without executing local loops.\n\nIf upgrading is not immediately possible, temporary mitigation can be achieved by overriding local routing behaviors or applying local firewall policies. Specifically, rules can be created using iptables or nftables to drop outgoing packets destined to 0.0.0.0 or :: that are not originating from local control interfaces.\n\nAnalysis of the patch confirms that the fix is complete. By shifting from dummy address spoofing to standard NXDOMAIN responses, the root cause—relying on invalid/routable address translation—is fully eradicated, ensuring that variant attacks utilizing alternative local loopback ranges are blocked.

Fix Analysis (1)

Technical Appendix

CVSS Score
7.4/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Affected Systems

Linux installations utilizing netfoil DNS proxyContainers and platforms running applications that compromise netfoil filtering

Affected Versions Detail

Product
Affected Versions
Fixed Version
netfoil
tinfoil-factory
< 0.4.0v0.4.0
AttributeDetail
CWE IDCWE-693
Attack VectorNetwork
CVSS v4.07.4
ImpactHigh (Confidentiality & Integrity)
Exploit StatusProof of Concept (PoC) available
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1562.001Impair Defenses: Disable or Modify System Firewall
Defense Evasion
T1557Adversary-in-the-Middle (AiTM)
Collection
T1185Browser Session Hijacking
Collection
CWE-693
Protection Mechanism Failure

The product fails to correctly configure or execute a security mechanism, thereby failing to defend against unauthorized connection interception or routing behaviors.

Vulnerability Timeline

Pull Request #33 created and merged
2026-06-08
Fix commit 891d3513c77999a9deef9f23506807d9653ee448 finalized
2026-06-08
GitHub Security Advisory GHSA-XVG2-CGV6-6H7V published
2026-07-29

References & Sources

  • [1]GHSA-XVG2-CGV6-6H7V: Local traffic interception in netfoil
  • [2]Official Advisory Page on Repository
  • [3]Fix Pull Request #33
  • [4]Fix Commit Diff
  • [5]v0.4.0 Release Page

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•39 minutes ago•CVE-2026-59726
10.0

CVE-2026-59726: Unauthenticated Remote Code Execution in Ruflo MCP Bridge

Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.

Alon Barad
Alon Barad
2 views•2 min read
•about 2 hours ago•CVE-2026-59818
6.5

CVE-2026-59818: Improper Certificate Revocation List (CRL) Validation on Split gRPC Listeners in etcd

In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 3 hours ago•CVE-2026-59831
4.4

CVE-2026-59831: Remote Code Execution via Unvalidated URL Scheme Handling in GitHub CLI

GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.

Alon Barad
Alon Barad
8 views•9 min read
•about 4 hours ago•CVE-2026-59191
6.9

CVE-2026-59191: Path Traversal and Arbitrary File Read in CakePHP TwigView FileLoader

A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.

Alon Barad
Alon Barad
5 views•9 min read
•about 5 hours ago•CVE-2026-64855
8.2

CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation

CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.

Amit Schendel
Amit Schendel
9 views•10 min read
•about 6 hours ago•GHSA-JP3C-6V3G-MPXV
6.5

GHSA-jp3c-6v3g-mpxv: Uncaught Runtime Panic via Integer Underflow in insomniacslk/dhcp BroadcastRawUDPConn

A denial-of-service vulnerability exists in the Go library github.com/insomniacslk/dhcp within the dhcpv4/nclient4 subpackage. In affected versions, the raw packet parsing function BroadcastRawUDPConn.ReadFrom subtracts the fixed 8-byte UDP header length from the IPv4 payload length declared in the packet header without first verifying that the declared payload length is at least 8 bytes. An unauthenticated attacker on an adjacent local network segment can broadcast or unicast a malformed IPv4 packet with a declared payload length between 0 and 7 bytes, causing a signed integer underflow that passes a negative slice bound into buf.Consume and triggers an unhandled Go runtime panic.

Amit Schendel
Amit Schendel
6 views•12 min read