Hacking Into A Server Through Ftp
An internet-facing FTP server allowed anonymous logins and exposed a list of usernames, which the author used to brute-force a valid password. The server also ran a version of vsftpd with a known backdoor, giving the author root access to the host.
In the rush to patch the latest zero-days and harden modern application stacks, system administrators often overlook what’s quietly humming in the background — legacy protocols that have been running so long, no one remembers to turn them off. File Transfer Protocol (FTP) is one of the most persistent examples of this…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a combination of anonymous FTP access left enabled, sensitive files stored in the FTP directory, weak or guessable passwords, and an outdated vsftpd version containing a backdoor.
Impact
The author gained root on the server and could read the password hashes of every local user, which could be cracked or reused against other machines on the network.
What the attacker needed
Network access to the FTP port; anonymous login enabled; weak user passwords
The fix
Anonymous access should be disabled, sensitive files removed from FTP directories, strong passwords enforced, and the outdated FTP software replaced or upgraded.
How it was found
- Scan the target with nmap using service and script detection across all ports.
- Log in to the FTP service as the anonymous user.
- List the files and download the exposed username list.
- Build a password list from the company website with CeWL and common passwords.
- Brute-force the FTP logins with Medusa using the username and password lists.
- Run the Metasploit module for the vsftpd version to get a shell and confirm root.
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 write-up has not been written yet. The Original tab links to the source.
FTP is an old way of moving files to and from a server, and it sends everything, including passwords, without encryption. Here the server let anyone log in without a real account, and a leftover file listed staff usernames. The author then guessed passwords for those usernames and also used a known flaw in the FTP software to take full control of the machine.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.