Skip to content
Misconfiguration Write-up Beginner

️ Write-up: ProFTPD 1.3.5 mod_copy Exploitation (CVE-2015–330

A ProFTPD 1.3.5 server had the mod_copy feature enabled, allowing unauthenticated users to copy arbitrary files on the server. The attacker copied a sensitive file into the web root and retrieved it over HTTP.

Celebwari nyoka bwari Follow

Published on medium.com

This write-up documents the full exploitation chain used to discover and extract a hidden flag from a vulnerable ProFTPD 1.3.5 server using the modcopy feature.

Celebwari nyoka bwari, on medium.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 mod_copy module was enabled without restricting which files could be copied or who could use it.

Impact

An unauthenticated attacker could read arbitrary files on the server, including sensitive ones, by copying them to a web-accessible directory.

What the attacker needed

ProFTPD with mod_copy enabled; No authentication required for SITE commands; A web server serving files from a writable directory

The fix

The mod_copy feature should be disabled or restricted to prevent arbitrary file copying by unauthenticated users.

How it was found

  1. Scan the target to find open services and identify ProFTPD 1.3.5 on port 21.
  2. Connect to the FTP service and test commands; anonymous login fails.
  3. Discover that the SITE CPFR and SITE CPTO commands are supported.
  4. Use SITE CPFR and SITE CPTO to copy a sensitive file to a temporary location.
  5. Identify the Apache web root as /var/www/html.
  6. Copy the sensitive file into the web root and retrieve it via HTTP.

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 protocol for transferring files. Some FTP servers have a feature that lets you copy files from one place to another on the server. If that feature is left on and not restricted, anyone can copy sensitive files to a place they can download them, like a public website folder.

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.