Shadowsocks-libev ss-server UdpRelay Denial-of-Service Vulnerability
The UDP relay in Shadowsocks-libev 3.3.2, when using a stream cipher and a local_address, can be crashed by sending arbitrary UDP packets. An attacker can cause the server to exit, leading to denial of service.
An exploitable denial-of-service vulnerability exists in the UDPRelay functionality of Shadowsocks-libev 3.3.2. When utilizing a Stream Cipher and a localaddress, arbitrary UDP packets can cause a FATAL error code path and exit.
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
Impact
The server process exits, causing a denial of service for all users relying on that Shadowsocks server.
What the attacker needed
Ss-server uses a stream cipher; UDP relay is enabled; local_address is set or -b flag used
The fix
Use an AEAD cipher instead of a stream cipher.
How it was found
- Configure ss-server with a stream cipher (e.g., aes-256-cfb) and set local_address.
- Enable UDP relay (e.g., with -u flag).
- Send arbitrary UDP packets to the ss-server port.
- The server logs errors and exits with a FATAL error.
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.
Shadowsocks is a tool that helps people bypass internet censorship by encrypting their traffic. In this version, if it is set up in a certain way, anyone can send it random data over UDP (a network protocol) and make it shut down completely. This means the service becomes unavailable for legitimate users.
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.