SoftEther VPN DCRegister DDNS_RPC_MAX_RECV_SIZE denial of service vulnerability
A denial of service vulnerability exists in SoftEther VPN's DDNS client thread due to an integer overflow in buffer resizing. An attacker who can intercept unencrypted DDNS traffic can cause an infinite loop, disabling the DDNS registration and making the server unreachable through NAT or firewalls.
Originally disclosed on Cisco Talos
A denial of service vulnerability exists in the DCRegister DDNSRPCMAXRECVSIZE functionality of SoftEther VPN 4.41-9782-beta, 5.01.9674 and 5.02. A specially crafted network packet 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 an integer overflow in the buffer resizing function AdjustBufSize, where doubling a 32-bit size can wrap around and cause an infinite loop when the requested size exceeds 0x80000000.
Impact
The DDNS client thread enters an infinite loop, denying service to that thread and making the VPN server inaccessible through NAT or firewalls, which denies a major use-case of the product.
What the attacker needed
Man-in-the-middle position on DDNS traffic; ability to intercept unencrypted UDP and HTTP
The fix
The vendor issued an advisory and a patch release.
How it was found
- Intercept the unencrypted NAT-T UDP traffic and set the DDNS_RPC_MAX_RECV_SIZE dynamic value to a number greater than 0x8000000.
- Intercept the unencrypted HTTP request from the DDNS client and respond with an HTTP response that has a Content-Length greater than 0x80000000.
- Send at least 0x80000000 bytes of data so that the receive buffer expands, triggering the infinite loop in AdjustBufSize.
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.
SoftEther VPN automatically registers itself with a DDNS service so it can be reached behind firewalls. The client that does this registration trusts some settings received over unencrypted UDP. An attacker who can intercept that traffic can change a setting that controls the maximum response size, then send a large response that makes the client loop forever, so the VPN server can no longer be reached from outside.
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.