| Source | Link |
|---|---|
| seclists | www.seclists.org/bugtraq/1999/Nov/149 |
#
# (C) Tenable Network Security, Inc.
#
# Script audit and contributions from Carmichael Security
# Erik Anderson <[email protected]> (nb: domain no longer exists)
# Added BugtraqID
#
include( 'compat.inc' );
if(description)
{
script_id(10257);
script_version ("1.29");
script_bugtraq_id(790);
script_name(english:"NetCPlus SmartServer3 POP3 (NCPOPSERV.EXE) USER Command Remote Overflow");
script_summary(english:"Attempts to overflow the in.pop3d buffers");
script_set_attribute(
attribute:'synopsis',
value:"The remote mail server is vulnerable to a buffer overflow."
);
script_set_attribute(
attribute:'description',
value:"The remote pop3 server seems vulnerable to a buffer overflow when issued a
very long command.
This *may* allow an attacker to execute arbitrary commands
as root on the remote POP3 server."
);
script_set_attribute(
attribute:'solution',
value:"Contact your vendor for a patch or upgrade."
);
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(
attribute:'see_also',
value:"https://seclists.org/bugtraq/1999/Nov/149"
);
script_set_attribute(attribute:"plugin_publication_date", value: "1999/11/12");
script_cvs_date("Date: 2018/11/15 20:50:22");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
script_category(ACT_DESTRUCTIVE_ATTACK);
script_copyright(english:"This script is Copyright (C) 1999-2018 Tenable Network Security, Inc.");
script_family(english:"Gain a shell remotely");
script_dependencie("find_service1.nasl", "qpopper.nasl");
script_exclude_keys("global_settings/supplied_logins_only");
script_require_ports("Services/pop3", 110);
exit(0);
}
#
# The script code starts here
#
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
if (supplied_logins_only) audit(AUDIT_SUPPLIED_LOGINS_ONLY);
port = get_service(svc:"pop3", default: 110, exit_on_fail: 1);
fake = get_kb_item("pop3/"+port+"/false_pop3");
if(fake)exit(0);
soc = open_sock_tcp(port);
if (! soc) exit(1);
r = recv_line(socket:soc, length:4096);
if(!r)exit(0);
if ( "smart" >!< tolower(r)) exit(0);
c = string("USER ", crap(800), "\r\n");
send(socket:soc, data:c);
d = recv_line(socket:soc, length:1024);
c = string("PASS ", crap(2000), "\r\n");
send(socket:soc, data:c);
d = recv_line(socket:soc, length:1024);
if(!d)
{
security_hole(port);
}
else {
if (service_is_dead(port: port) > 0)
security_hole(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