Skip to content
Info disclosure Write-up Advanced

CVE-2019-14899 - Inferring and hijacking VPN-tunneled TCP connections

A network-adjacent attacker can determine a VPN client's virtual IP address, infer active TCP connections, and derive the sequence and acknowledgement numbers needed to inject data into the encrypted VPN tunnel. This allows hijacking of TCP connections inside the VPN.

seclists.org

Published on seclists.org

I am reporting a vulnerability that exists on most Linux distros, and other nix operating systems which allows a network adjacent attacker to determine if another user is connected to a VPN, the virtual IP address they have been assigned by the VPN server, and whether or not there is an active connection to a given…

The author, on seclists.org

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the operating system responds to unsolicited packets sent to the VPN client's virtual IP address over the physical interface, and the size and timing of encrypted responses reveal enough to infer TCP sequence and acknowledgement numbers.

Impact

An attacker could hijack active TCP connections inside the VPN tunnel, but the attack requires the victim to connect to an attacker-controlled access point or be adjacent on the network.

What the attacker needed

Attacker controls or is adjacent to the access point; victim uses a VPN; victim device responds to unsolicited packets

The fix

The text suggests mitigations such as reverse path filtering, bogon filtering, and padding encrypted packets, but does not state that a fix was applied.

How it was found

  1. The victim connects to the attacker-controlled access point and then to their VPN.
  2. The attacker sends SYN-ACK packets across the VPN virtual IP space; a RST from the victim reveals the correct virtual IP.
  3. The attacker sends SYN or SYN-ACK packets from a target website's IP across the victim's ephemeral port space; challenge ACKs versus RSTs reveal an active connection.
  4. The attacker spoofs reset packets across the sequence number space until encrypted challenge ACKs are observed, inferring an in-window sequence number.
  5. The attacker spoofs empty PSH-ACKs with the in-window sequence and guesses acknowledgement numbers to find an in-window ACK.
  6. The attacker decrements the sequence number until another challenge ACK is triggered, then injects arbitrary payloads.

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 write-up has not been written yet. The Original tab links to the source.

When you use a VPN, your device still sends some network packets that an attacker on the same Wi-Fi or network can see. By sending specially crafted packets and watching how your device replies, the attacker can guess which websites you are visiting and even take over your connection. The VPN encrypts the contents, but the size and timing of the replies still leak information.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.