Lucene search
K

Network Notary Server Detection

🗓️ 21 Oct 2008 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 43 Views

Network Notary Server Detection. Monitors and records public keys for network services

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



include("compat.inc");

if (description)
{
  script_id(34447);
  script_version("1.6");
  script_cvs_date("Date: 2019/11/22");

  script_name(english:"Network Notary Server Detection");
  script_summary(english:"Queries a notary for www.nessus.org");

 script_set_attribute(attribute:"synopsis", value:
"A network service is listening on the remote host." );
 script_set_attribute(attribute:"description", value:
"The remote service is a Perspectives Network Notary Server. 
Perspectives is a framework to authenticate public keys for various
network services, and a Network Notary monitors and records the public
keys used by various network services." );
 script_set_attribute(attribute:"see_also", value:"http://www.cs.cmu.edu/~perspectives/index.html" );
 script_set_attribute(attribute:"risk_factor", value:"None" );
 script_set_attribute(attribute:"solution", value:"n/a" );
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/10/21");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"asset_inventory", value:"True");
script_end_attributes();


  script_category(ACT_GATHER_INFO);
  script_family(english:"Service detection");

  script_copyright(english:"This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  exit(0);
}

include("global_settings.inc");
include("byte_func.inc");
include("misc_func.inc");


port = 15217;
if (known_service(port:port, ipproto:"udp")) exit(0);
if (! get_udp_port_state(port)) exit(0, "UDP port "+port+" is not open.");

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


# Query a service.
#
# nb: format is "<dns-name>:<port>,<service-type>", and
#     service-type 2 is for SSL servers.
service = "www.nessus.org:443,2";
TYPE_FETCH_REQ           = 1;
TYPE_FETCH_REPLY_PARTIAL = 2;
TYPE_FETCH_REPLY_FINAL   = 3;
TYPE_FETCH_REPLY_EMPTY   = 4;


service = tolower(service) + mkbyte(0);
req = 
  mkbyte(1) +                          # version
  mkbyte(TYPE_FETCH_REQ) +             # message type
  mkword(strlen(service)+10) +         # total length
  mkword(9) +                          # service type
  mkword(strlen(service)) +            # name length
  mkword(0) +                          # sig length
  service;  
send(socket:soc, data:req);

res = recv(socket:soc, length:1024, min:10);
close(soc);


# If...
if (
  strlen(res) >= 10 &&
  # the message type indicates a reply and ...
  (
    getbyte(blob:res, pos:1) == TYPE_FETCH_REPLY_FINAL || 
    getbyte(blob:res, pos:1) == TYPE_FETCH_REPLY_EMPTY
  ) &&
  # the packet size agrees with the word at offset 2 and...
  getword(blob:res, pos:2) == strlen(res) &&
  # the word at offset 4 is 9
  getword(blob:res, pos:4) == 9 &&
  # the service name length agrees with the word at offset 6 and
  getword(blob:res, pos:6) == strlen(service) &&
  # the service name we requested is located at offset 10.
  stridx(res, service) == 10
)
{
  # Register and report the service.
  register_service(port:port, ipproto:"udp", proto:"notary");
  security_note(port:port, proto:"udp");
}

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
43