Rapid7 Vulnerability & Exploit Database

ProFTPD 1.3.5 Mod_Copy Command Execution

Back to Search

ProFTPD 1.3.5 Mod_Copy Command Execution

Disclosed
04/22/2015
Created
05/30/2018

Description

This module exploits the SITE CPFR/CPTO mod_copy commands in ProFTPD version 1.3.5. Any unauthenticated client can leverage these commands to copy files from any part of the filesystem to a chosen destination. The copy commands are executed with the rights of the ProFTPD service, which by default runs under the privileges of the 'nobody' user. By using /proc/self/cmdline to copy a PHP payload to the website directory, PHP remote code execution is made possible.

Author(s)

  • Vadim Melihow
  • xistence <xistence@0x90.nl>

Platform

Unix

Architectures

cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/unix/ftp/proftpd_modcopy_exec
msf exploit(proftpd_modcopy_exec) > show targets
    ...targets...
msf exploit(proftpd_modcopy_exec) > set TARGET < target-id >
msf exploit(proftpd_modcopy_exec) > show options
    ...show and set options...
msf exploit(proftpd_modcopy_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;