SoftEther VPN CiRpcServerThread() MitM authentication bypass vulnerability
The SoftEther VPN client's RPC server binds to the first available port in a fixed range, and the RPC client connects to the first open port without authentication. A local attacker can bind to the expected port and intercept the client's RPC traffic, gaining control of the VPN client and potentially accessing sensitive networks.
Originally disclosed on Cisco Talos
An authentication bypass vulnerability exists in the CiRpcServerThread() functionality of SoftEther VPN 5.01.9674 and 4.41-9782-beta. An attacker can perform a local man-in-the-middle attack to trigger this vulnerability.
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 RPC client connects to the first open port in a fixed range without verifying that the listener is the legitimate RPC server, allowing a local attacker to bind to that port first.
Impact
The attacker could gain the same access as the VPN client, potentially reaching sensitive networks, and could further intercept or manipulate VPN traffic.
What the attacker needed
Local access to the victim machine; ability to bind to a port in range 9930-9936; victim runs SoftEther VPN client
The fix
The vendor issued an advisory and patch; the text does not describe the fix details.
How it was found
- An attacker binds to the first port in the range (9930 or 9931) on the local machine without admin privileges.
- A legitimate SoftEther VPN client starts; its RPC server fails to bind to the first port and binds to the next available port.
- The legitimate RPC client scans the port range and connects to the attacker's port, sending traffic unencrypted.
- The attacker intercepts and manipulates the RPC traffic, gaining control of the VPN client.
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 client program has two parts that talk to each other over a local network connection. The part that listens for commands picks the first free port in a small range, and the part that sends commands just connects to the first open port it finds. An attacker on the same computer can grab that first port before the real program does, so the sender connects to the attacker instead of the real listener. This lets the attacker see and change the commands, potentially taking over the VPN.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.