Skip to content
Misconfiguration Write-up Beginner

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.

Red Follow

Published on infosecwriteups.com

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…

Red, on infosecwriteups.com

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

  1. Scan the target with nmap using service and script detection across all ports.
  2. Log in to the FTP service as the anonymous user.
  3. List the files and download the exposed username list.
  4. Build a password list from the company website with CeWL and common passwords.
  5. Brute-force the FTP logins with Medusa using the username and password lists.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.