ProFTPD 'mod_copy' Arbitrary File Copy Vulnerability (Remote)

critical Nessus Plugin ID 132749
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

It is possible for anonymous users to copy arbitrary files.

Description

The remote host is running ProFTPD. It is affected by a vulnerability in the mod_copy module which fails to honor <Limit READ> and <Limit WRITE> configurations as expected. An unauthenticated, remote attacker can exploit this, by using the mod_copy module's functionality, in order to copy arbitrary files in the FTP directory, provided that anonymous logins and mod_copy are enabled and the FTP directory is accessible from a web server. If a file exists in the FTP directory that contains PHP code but does not use the PHP extension, an attacker can copy this file to one with a PHP extension in order to execute code.

Solution

Upgrade to the latest version of ProFTPD.

See Also

http://bugs.proftpd.org/show_bug.cgi?id=4372

http://www.nessus.org/u?a323713d

Plugin Details

Severity: Critical

ID: 132749

File Name: proftpd_mod_copy.nasl

Version: 1.4

Type: remote

Family: FTP

Published: 1/9/2020

Updated: 1/10/2020

Dependencies: ftpserver_detect_type_nd_version.nasl

Risk Information

CVSS Score Source: CVE-2019-12815

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Temporal Vector: CVSS2#E:POC/RL:OF/RC:C

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:2.3:a:proftpd:proftpd:*:*:*:*:*:*:*:*

Required KB Items: ftp/proftpd

Excluded KB Items: global_settings/supplied_logins_only

Exploit Available: true

Exploit Ease: Exploits are available

Exploited by Nessus: true

Patch Publication Date: 7/17/2019

Vulnerability Publication Date: 7/19/2019

Reference Information

CVE: CVE-2019-12815

BID: 109339