#
# This script was written by George A. Theall, <[email protected]>.
#
# See the Nessus Scripts License for details.
#
# Changes by Tenable:
# - Revised plugin title, output formatting (9/3/09)
include("compat.inc");
if (description) {
script_id(15854);
script_version("$Revision: 1.11 $");
script_cvs_date("$Date: 2015/06/23 19:16:51 $");
script_name(english:"POP2 Cleartext Logins Permitted");
script_summary(english:"Checks for unencrypted POP2 login capability");
script_set_attribute(attribute:"synopsis", value:
"The remote POP2 daemon allows credentials to be transmitted in
cleartext." );
script_set_attribute(attribute:"description", value:
"The remote host is running a POP2 daemon that allows cleartext logins over
unencrypted connections. An attacker can uncover login names and
passwords by sniffing traffic to the POP2 daemon." );
script_set_attribute(attribute:"solution", value:
"Encrypt traffic with SSL / TLS using stunnel." );
script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:P/I:N/A:N");
script_set_attribute(attribute:"plugin_publication_date", value: "2004/11/30");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2004-2015 George A. Theall");
script_family(english:"Misc.");
script_dependencie("find_service1.nasl", "global_settings.nasl");
script_require_ports("Services/pop2", 109);
exit(0);
}
include("global_settings.inc");
port = get_kb_item("Services/pop2");
if (!port) port = 109;
debug_print("checking if POP2 daemon on port ", port, " allows unencrypted cleartext logins.");
if (!get_port_state(port)) exit(0);
# nb: skip it if traffic is encrypted.
encaps = get_port_transport(port);
if (encaps >= ENCAPS_SSLv2) exit(0);
# Establish a connection.
tag = 0;
soc = open_sock_tcp(port);
if (!soc) exit(0);
r = recv_line(socket:soc, length:4096);
if ( "POP" >!< r ) exit(0);
# nb: POP2 doesn't support encrypted logins so there's no need to
# actually try to log in. [Heck, I probably don't even need to
# establish a connection.]
if ( get_kb_item("Settings/PCI_DSS") ) set_kb_item(name:"PCI/ClearTextCreds/" + port,
value:"The remote POP2 daemon allows credentials to be transmitted in clear text.");
security_note(port);
close(soc);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation