It was recently revealed that a method was discovered that allows an attacker to force a user's traffic out of their VPN tunnel using built-in features of the DHCP protocol.
Dubbed "TunnelVision", this new attack method allows redirecting a victim's traffic through an attacker's host (provided the attacker has access to the local network or controls a wireless network).
It's important to note that the idea of ​​local routing changes isn't new and has been commonly used in attacks designed to spoof DNS servers. For example, TunnelCrack, which redirected traffic through a replacement default gateway, affected all tested iOS VPN clients, as well as macOS, Windows, Linux, and Android VPNs.
About TunnelVision
It is mentioned that the essence of TunnelVision is that the attacker can start their own DHCP server and use it to send information to the client in order to change the routing . Specifically, an attacker can use DHCP option 121, which is designed to transmit static route information , to modify the routing table on the victim's machine and direct traffic without going through the VPN.
The purpose of this research was to test this technique against modern VPN providers to determine their vulnerability and notify the general public about this issue. This is why we agreed with CISA to file a CVE when we disclose to them and why we decided to name the vulnerability.
The redirection is achieved by configuring a series of routes for subnets with the /1 prefix , which have a higher priority than the default route with the /0 prefix. Consequently, instead of the virtual network interface configured for the VPN, traffic will be directed through the physical network interface to the attacker's host on the local network.
Instead of being sent through the VPN, the traffic is sent in plain text without a tunnel to the attacker's system. This issue affects any VPN client that does not use isolated network namespaces to route traffic to the tunnel or that does not establish packet filtering rules that prohibit routing VPN traffic through existing physical network interfaces.
TunnelVision can be performed on any system that supports DHCP option 121 , including Linux, Windows, iOS, and macOS, regardless of the VPN protocol used (Wireguard, OpenVPN, IPsec) and the cipher suite employed.
It is mentioned that Android is not susceptible to this attack because it does not process the 121 option in DHCP . Although the attack allows access to traffic, it does not allow the interception of connections or the determination of the content transmitted through secure application-level protocols, such as TLS and SSH. For example, the attacker cannot determine the content of requests sent over HTTPS, but can understand which servers the requests are being sent to.
To protect against an attack, several measures can be implemented at the packet filtering level: prohibiting the sending of packets destined for the VPN interface through other network interfaces, blocking DHCP packets with option 121, using a VPN within a separate virtual machine or container isolated from the external network, or using special tunnel configuration modes that employ Linux network namespaces.
To spoof routes , a specially designed USB dongle has also been developed that simulates the operation of a network adapter and, when connected to a computer via DHCP, declares itself as a gateway. Furthermore, when the gateway is under attacker control (for example, when a victim connects to a wireless network controlled by an attacker), a technique has been developed to inject packets into the tunnel that are perceived as originating from the VPN network interface. Several scripts have also been published for experimenting with these attacks.
Finally, if you are interested in learning more about this , you can find the details at the following link.