Lucene search
+L

RPC rstatd Service Detection (UDP)

🗓️ 23 Sep 2011 00:00:00Reported by Copyright (C) 2011 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 22 Views

RPC rstatd Service Detection (UDP) on remote host providing monitorable statistics like system uptime, cpu, disk, and network usag

Related
Refs
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-1999-0624
4 Feb 200005:00
cve
cvelist
Cvelist
CVE-1999-0624
4 Feb 200005:00
cvelist
euvd
EUVD
EUVD-1999-0607
7 Oct 202500:30
euvd
nvd
NVD
CVE-1999-0624
1 Jan 199905:00
nvd
openvas
OpenVAS
RPC rstatd Service Detection (TCP)
23 Sep 201100:00
openvas
ptsecurity
Positive Technologies
PT-1999-1232 · Unknown · Rstat/Rstatd
1 Jan 199900:00
ptsecurity
redhatcve
RedhatCVE
CVE-1999-0624
21 May 202518:11
redhatcve
nessus
Tenable Nessus
RPC rstatd Service Detection
19 Aug 199900:00
nessus
# SPDX-FileCopyrightText: 2011 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.108480");
  script_version("2023-09-12T05:05:19+0000");
  script_tag(name:"last_modification", value:"2023-09-12 05:05:19 +0000 (Tue, 12 Sep 2023)");
  script_tag(name:"creation_date", value:"2011-09-23 16:39:49 +0200 (Fri, 23 Sep 2011)");
  script_cve_id("CVE-1999-0624");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_name("RPC rstatd Service Detection (UDP)");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2011 Greenbone AG");
  script_family("Useless services");
  script_dependencies("gb_rpc_portmap_udp_detect.nasl");
  script_mandatory_keys("rpc/portmap/udp/detected");

  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/115");
  script_xref(name:"URL", value:"http://www.iss.net/security_center/advice/Services/SunRPC/rpc.rstatd/default.htm");

  script_tag(name:"summary", value:"This remote host is running a RPC rstatd service via UDP.");

  script_tag(name:"vuldetect", value:"Checks whether a RPC rstatd service is exposed on the target
  host.");

  script_tag(name:"insight", value:"The rstatd service is a RPC server which provides remotely
  monitorable statistics obtained from the kernel such as,

  - system uptime

  - cpu usage

  - disk usage

  - network usage

  - load averages

  - and more.

  Remark: NIST don't see 'configuration issues' as software flaws so the referenced CVE has a
  severity of 0.0. The severity of this VT has been raised by Greenbone to still report a
  configuration issue on the target.");

  script_tag(name:"solution", value:"Disable the RPC rstatd service if not needed.");

  script_tag(name:"solution_type", value:"Mitigation");
  script_tag(name:"qod_type", value:"remote_banner");

  exit(0);
}

include("rpc.inc");
include("byte_func.inc");

# nb: RPC rstatd Program ID
RPC_PROG = 100001;

port = rpc_get_port( program:RPC_PROG, protocol:IPPROTO_UDP );
if( ! port )
  exit( 0 );

if( ! get_udp_port_state( port ) )
  exit( 0 );

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

rpc_paket = rpc_construct_packet( program:RPC_PROG, prog_ver:3, procedure:1, data:NULL, udp:"udp" );

send( socket:soc, data:rpc_paket );
res = recv( socket:soc, length:4096 );
close( soc );

# nb: It's not a proper response if response length < 100 and > 130
if( strlen( res ) < 100 || strlen( res ) > 150 )
  exit( 0 );

# nb: Accept state position (UDP: 20, TCP: 20 + 4 bytes of Fragment header)
pos = 20;

if( ord( res[pos] ) == 0 && ord( res[pos + 1] ) == 0 &&
    ord( res[pos + 2] ) == 0 && ord( res[pos + 3] ) == 0 ) {
  # nb: We don't use register_service as this is already done by rpcinfo.nasl
  security_message( port:port, proto:"udp" );
  exit( 0 );
}

exit( 99 );

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

12 Sep 2023 00:00Current
6.8Medium risk
Vulners AI Score6.8
EPSS0.01341
22