SoftEther VPN vpnserver EnSafeHttpHeaderValueStr denial of service vulnerability
A one-byte out-of-bounds read occurs in the SoftEther VPN server when processing an HTTP header containing a backslash followed by 'r' or 'n', due to an incorrect memory move. An attacker could send a crafted packet to crash the server, causing denial of service.
Originally disclosed on Cisco Talos
A denial-of-service vulnerability exists in the vpnserver EnSafeHttpHeaderValueStr functionality of SoftEther VPN 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
The Move function is called with a length that includes the null terminator and one extra byte, causing a one-byte out-of-bounds read.
Impact
An attacker could cause a server crash and denial of service, though the text notes that careful heap manipulation is needed to make the crash reliable.
What the attacker needed
Network access to a SoftEther VPN server port
The fix
The vendor released a patch, referenced by a pull request, to correct the out-of-bounds read.
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.
The VPN server reads HTTP headers from incoming connections. When it sees a backslash followed by 'r' or 'n', it tries to remove those characters but accidentally reads one byte past the end of the memory buffer. This can crash the server, so an attacker can take the VPN service offline by sending a specially crafted request.
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.