Skip to content
RCE Write-up Beginner

Proftpd Exploitation

The ProFTPD 1.3.5 service on the target was exploited using a Metasploit module that writes a payload into the Apache web root, allowing the attacker to obtain a reverse shell. The text does not explain the underlying vulnerability, only the exploitation procedure against an intentionally vulnerable machine.

Dion Mulaj Follow

Published on systemweakness.com

This article will explain the ProFTPD Exploitation with a step-by-step approach, from simple target scanning, to service exploitation.

Dion Mulaj, on systemweakness.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 the ProFTPD version in use has a known flaw that lets an attacker write files into a directory served by the web server, but the text does not state the actual cause.

Impact

An attacker could gain a reverse shell on the target, but only because the machine is intentionally vulnerable and the web path was writable.

What the attacker needed

Target runs vulnerable ProFTPD; writable Apache web root; network access to target

How it was found

  1. Scan the target with Nmap to find open ports and services.
  2. Note that ProFTPD 1.3.5 runs on port 21 and Apache runs on port 80.
  3. Start Metasploit and search for a ProFTPD 1.3.5 exploit.
  4. Select the exploit and set the target host and the writable web path.
  5. Choose a reverse shell payload and set the attacker's address and port.
  6. Run the exploit to obtain a reverse shell.

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.

This is a walkthrough of attacking a deliberately vulnerable practice machine. It uses a ready-made tool to take advantage of an old file-transfer server so that the attacker can run commands on the target. It does not explain why the server is vulnerable, only how to run the tool.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Dion Mulaj

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.