Important security vulnerabilities in OpenVPN
Several memory-safety flaws were found in OpenVPN's certificate, NTLM proxy and packet handling code, including unchecked return values, wrong free routines and signed-length misuse. An attacker, in some cases a man-in-the-middle, could crash a client or server, leak memory or stack data, or trigger a double-free.
guidovranken.wordpress.com
Published on guidovranken.wordpress.com
UPDATE: OpenVPN fuzzers now released.
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 code fails to check return values and uses signed values as lengths and offsets, plus frees structures with the wrong routine.
Impact
A remote attacker, including an active man-in-the-middle, could crash the client or server, leak memory or stack data such as the password, and plausibly trigger a double-free, though the double-free depends on memory exhaustion and was not demonstrated.
What the attacker needed
Server uses x509-username-field; client uses NTLMv2 proxy; attacker in man-in-the-middle role; crafted certificate signed by CA
The fix
The issues were reported to the OpenVPN security list and patches were published for the flaws that lacked a CVE.
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.
OpenVPN is software that builds a private, encrypted network link. The bugs are mistakes in how the program handles data it receives from another computer, such as a certificate or a proxy reply. Because the program trusts that data too much, a hostile sender can make it crash or reveal memory contents.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.