SoftEther VPN vpnserver ConnectionAccept() denial-of-service vulnerability
A denial-of-service vulnerability in SoftEther VPN's vpnserver allows an attacker to exhaust server resources by repeatedly making SSL connections to any configured TCP port, causing thread exhaustion and an abort. This can kill the server and all existing VPN connections.
Originally disclosed on Cisco Talos
A denial-of-service vulnerability exists in the vpnserver ConnectionAccept() functionality of SoftEther VPN 5.02. A set of specially crafted network connections can lead to denial of service.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server spawns a new thread for each incoming connection without limiting concurrency, and these threads contend for a shared lock, leading to resource exhaustion.
Impact
The server can be killed within a couple of minutes, causing denial of service; the network service restarts but can be continuously killed.
What the attacker needed
Network access to the VPN server; ability to make many SSL connections
The fix
The vendor released a patch (pull request on GitHub) to address the vulnerability.
How it was found
- Repeatedly make SSL connections to any of the TCP ports that the vpnserver is configured for.
- Hit all four default configured TCP ports from a single VM.
- Continue until the server reaches around 32657 threads and memory gets sparse, causing an Abort().
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 report has not been written yet. The Original tab links to the source.
A VPN server accepts connections and creates a new thread (a lightweight process) for each one. If an attacker opens many connections quickly, the server runs out of memory and crashes, disrupting service for legitimate users.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.