Vulnerabilities > CVE-2001-0937 - Unspecified vulnerability in Matt Wright Pgpmail.Pl 1.31

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
matt-wright
nessus

Summary

PGPMail.pl 1.31 allows remote attackers to execute arbitrary commands via shell metacharacters in the (1) recipient or (2) pgpuserid parameters.

Vulnerable Configurations

Part Description Count
Application
Matt_Wright
1

Nessus

NASL familyCGI abuses
NASL idPGPMAIL.NASL
descriptionThe
last seen2020-06-01
modified2020-06-02
plugin id11070
published2002-08-13
reporterThis script is Copyright (C) 2002-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/11070
titlePGPMail.pl detection
code
#
# (C) Tenable Network Security, Inc.
#
# Script audit and contributions from Carmichael Security <http://www.carmichaelsecurity.com>
#      Erik Anderson <[email protected]>
#      Added CAN.  Added link to the Bugtraq message archive
#
# References:
# From: [email protected]
# To: [email protected], [email protected]
# Subject: Vulnerabilities in PGPMail.pl
# Date: Thu, 29 Nov 2001 19:45:38 -0800
#
# John Scimone <[email protected]>.
# <http://www.securityfocus.com/archive/82/243262>
#

include("compat.inc");

if (description)
{
 script_id(11070);
 script_version("1.22");
 script_cvs_date("Date: 2018/11/15 20:50:18");

 script_cve_id("CVE-2001-0937");
 script_bugtraq_id(3605);
 script_name(english:"PGPMail.pl detection");
 script_summary(english:"Checks for the presence of PGPMail.pl");

 script_set_attribute(attribute:"synopsis", value:"Arbitrary commands might be run on the remote host.");
 script_set_attribute(attribute:"description", value:
"The 'PGPMail.pl' CGI is installed.

Some versions (up to v1.31 a least) of this CGI do not properly filter
user input before using it inside commands. This would allow an
attacker to run any command on the server.

Note: Nessus just checked the presence of this CGI but did not try to
exploit the flaws.");
 script_set_attribute(attribute:"solution", value:"remove it from /cgi-bin or upgrade it.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"false");
 script_set_attribute(attribute:"see_also", value:"http://web.archive.org/web/20080520111154/http://online.securityfocus.com/archive/82/243262");
 script_set_attribute(attribute:"see_also", value:"http://web.archive.org/web/20080521161800/http://online.securityfocus.com/archive/1/243408");

 script_set_attribute(attribute:"vuln_publication_date", value:"2001/11/29");
 script_set_attribute(attribute:"plugin_publication_date", value:"2002/08/13");

 script_set_attribute(attribute:"potential_vulnerability", value:"true");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);

 script_copyright(english:"This script is Copyright (C) 2002-2018 Tenable Network Security, Inc.");
 script_family(english:"CGI abuses");

 script_dependencie("http_version.nasl");
 script_require_keys("Settings/ParanoidReport");
 script_require_ports("Services/www", 80);

 exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

if (report_paranoia < 2) audit(AUDIT_PARANOID);

port = get_http_port(default:80, embedded: 0);
res = is_cgi_installed3(port:port, item:"PGPMail.pl");
if(res) security_hole(port);