SoftEther VPN ClientConnect() information disclosure vulnerability
A malicious VPN server can send a redirect response without a ticket, causing the client to copy uninitialised stack memory into the ticket field and send it to the new server. This leaks 20 bytes of sensitive information from the client's memory.
Originally disclosed on Cisco Talos
An information disclosure vulnerability exists in the ClientConnect() functionality of SoftEther VPN 5.01.9674. A specially crafted network packet can lead to a disclosure of sensitive information.
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 client does not check whether the Ticket parameter is present before copying the uninitialised ticket stack variable into the connection structure.
Impact
An attacker performing a man-in-the-middle attack could leak 20 bytes of uninitialised stack memory from the client, potentially disclosing sensitive information.
What the attacker needed
Man-in-the-middle position; malicious VPN server
The fix
The client should initialise the ticket buffer or check that the Ticket parameter is present before copying it.
How it was found
- Set up a malicious VPN server that responds to the client's connection request.
- Send a redirect response that includes IP, Port, and Cert parameters but omits the Ticket parameter.
- The client copies uninitialised stack memory into the ticket and connects to the new server.
- The client sends the leaked 20 bytes as part of the authentication packet to the new server.
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.
When a VPN client connects to a server, the server can tell it to redirect to another address. The client is supposed to receive a special ticket for the new server, but if the server omits it, the client still copies whatever was left in memory into the ticket and sends it. This means random memory contents from the client are leaked to the attacker's server.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.