Lucene search
K

rsh NULL Login Remote Privilege Escalation

🗓️ 25 Jul 2002 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 337 Views

Arbitrary commands can be run using rsh with NULL login, requiring immediate configuration fix.

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-1999-0180
29 Sep 199904:00
cve
Cvelist
CVE-1999-0180
29 Sep 199904:00
cvelist
EUVD
EUVD-1999-0180
7 Oct 202500:30
euvd
NVD
CVE-1999-0180
1 Jan 199705:00
nvd
Positive Technologies
PT-1997-1082 · In.Rshd · In.Rshd
1 Jan 199700:00
ptsecurity
RedhatCVE
CVE-1999-0180
7 Jan 202609:42
redhatcve
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");
include("data_protection.inc");

if(description)
{
 script_id(10096);
 script_version ("1.17");
 script_cvs_date("Date: 2018/08/13 14:32:36");
 script_cve_id("CVE-1999-0180");

 script_name(english:"rsh NULL Login Remote Privilege Escalation");
 
 script_set_attribute(attribute:"synopsis", value:
"Arbitrary commands can be run on this host." );
 script_set_attribute(attribute:"description", value:
"It is possible to execute arbitrary command on this host
using rsh by supplying a NULL username." );
 script_set_attribute(attribute:"solution", value: "Configure rsh properly or disable it.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
 script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");

 script_set_attribute(attribute:"plugin_publication_date", value: "2002/07/25");
 script_set_attribute(attribute:"vuln_publication_date", value: "1995/03/11");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 script_summary(english: "attempts to log in using rsh");
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2002-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
 script_family(english: "Gain a shell remotely");
 script_dependencie("find_service1.nasl", "rsh.nasl");
 script_require_ports("Services/rsh", 514);
 script_require_keys("rsh/active");
 exit(0);
}



port = get_kb_item("Services/rsh");
if(!port)port = 514;
if(!get_port_state(port))exit(0);

soc = open_priv_sock_tcp(dport:port);
if(soc)
{
 s1 = raw_string(0);
 s2 = raw_string(0) +  raw_string(0) + "id" + raw_string(0);
 send(socket:soc, data:s1);
 send(socket:soc, data:s2);
 a = recv(socket:soc, length:1024, min:1);
 if(strlen(a) == 0)exit(0);
 a += recv(socket:soc, length:1024);
 if("uid=" >< a )
 {
  a = str_replace(find:raw_string(0), replace:"", string:a);
  security_hole(port:port, extra:'The command "id" produced the following output:\n' + data_protection::sanitize_uid(output:a));
  set_kb_item(name: 'rsh/null/'+port, value: TRUE);
 }
 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

13 Aug 2018 14:32Current
5.9Medium risk
Vulners AI Score5.9
CVSS 27.5
EPSS0.00639
337