Lucene search
K

NNTP Server Detection

🗓️ 12 Oct 1999 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 27 Views

NNTP server detected, ensure authorization per company policy, disable if unused.

Code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");

if(description)
{
 script_id(10159);
 script_version ("1.24");
 script_cvs_date("Date: 2019/11/22");
 name["english"] = "NNTP Server Detection";
 script_name(english:name["english"]);

 script_set_attribute(attribute:"synopsis", value:
"An NNTP server is listening on the remote port" );
 script_set_attribute(attribute:"description", value:
"The remote host is running a news server (NNTP).  Make sure that
hosting such a server is authorized by your company policy." );
 script_set_attribute(attribute:"solution", value:
"Disable this service if you do not use it." );
 script_set_attribute(attribute:"risk_factor", value:"None" );
 script_set_attribute(attribute:"plugin_publication_date", value: "1999/10/12");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"asset_inventory", value:"True");
script_end_attributes();

 
 summary["english"] = "NNTP Server Detection";;
 script_summary(english:summary["english"]);
 
 script_category(ACT_GATHER_INFO);
 
 script_copyright(english:"This script is Copyright (C) 2005-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
 script_family(english:"Service detection");

 script_dependencie("find_service_3digits.nasl", "doublecheck_std_services.nasl");
 script_require_ports("Services/nntp", 119);
 
 exit(0);
}

#
# The script code starts here
#
include("ftp_func.inc");
include("misc_func.inc");

port = get_kb_item("Services/nntp");
if ( ! port ) port = 119;
if ( ! get_port_state(port) ) exit(0);

soc = open_sock_tcp(port);
if ( ! soc ) exit(0);

r = line = recv_line(socket:soc, length:4096);
while ( r[3] == "-" )
{
 r = recv_line(socket:soc, length:4096);
 line += r;
}

if (egrep(string: line, pattern: "[ -]Leafnode NNTP Daemon"))
  set_kb_item(name: "nntp/leafnode", value: TRUE);

if ( line =~ "^200" )
	{
	send(socket:soc, data:'authinfo user ' + rand_str(length:8) + '\r\n');
	r = recv_line(socket:soc, length:255);
	if ( r =~ "^381" ) {
		report = '\nRemote server banner :\n\n  ' + line;
		security_note(port:port, extra:report);
		}
	}
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

22 Nov 2019 00:00Current
5.5Medium risk
Vulners AI Score5.5
27