CVE-2016-7064: Pritunl Invalid Signature Verification
The Pritunl VPN client fetched signed configuration data from the VPN server but never checked the HMAC signature on that data. A man-in-the-middle attacker could supply their own configuration, making the client connect to an attacker-controlled VPN and route all traffic through it.
amlw.dev
Published on amlw.dev
The Pritunl Client contacted the configured VPN server for specific configuration data before initiating the VPN connection. This data was signed using HMAC SHA-512, however, the signature was never verified by the client.
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
The client parsed and used the server-supplied configuration without recomputing and comparing the HMAC signature, so the integrity check was effectively absent.
Impact
A man-in-the-middle attacker could hijack the connection and route all of the victim's traffic through an attacker-controlled VPN.
What the attacker needed
Attacker in the network path (MITM); victim uses the Pritunl client
The fix
The client was fixed to recompute the HMAC over the configuration and reject it unless the signature matches, and the request signing was moved to SHA-512.
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 the VPN client starts, it asks the server for settings and the server signs them so the client can prove they are genuine. Here the client received the signature but never checked it, so anyone sitting between the user and the server could swap in their own settings. The user would then unknowingly send all their internet traffic through the attacker's VPN.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.