Skip to content
Info disclosure Advisory Advanced CVE-2023-31192

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.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

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.

Lilith >_>, on Cisco Talos

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

  1. Set up a malicious VPN server that responds to the client's connection request.
  2. Send a redirect response that includes IP, Port, and Cert parameters but omits the Ticket parameter.
  3. The client copies uninitialised stack memory into the ticket and connects to the new server.
  4. 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.

More by Lilith >_>

View all

148 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.