Vulnerabilities > CVE-2001-1583 - OS Command Injection vulnerability in SUN Sunos
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
lpd daemon (in.lpd) in Solaris 8 and earlier allows remote attackers to execute arbitrary commands via a job request with a crafted control file that is not properly handled when lpd invokes a mail program. NOTE: this might be the same vulnerability as CVE-2000-1220.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
- Command Delimiters An attack of this type exploits a programs' vulnerabilities that allows an attacker's commands to be concatenated onto a legitimate command with the intent of targeting other resources such as the file system or database. The system that uses a filter or a blacklist input validation, as opposed to whitelist validation is vulnerable to an attacker who predicts delimiters (or combinations of delimiters) not present in the filter or blacklist. As with other injection attacks, the attacker uses the command delimiter payload as an entry point to tunnel through the application and activate additional attacks through SQL queries, shell commands, network scanning, and so on.
- Exploiting Multiple Input Interpretation Layers An attacker supplies the target software with input data that contains sequences of special characters designed to bypass input validation logic. This exploit relies on the target making multiples passes over the input data and processing a "layer" of special characters with each pass. In this manner, the attacker can disguise input that would otherwise be rejected as invalid by concealing it with layers of special/escape characters that are stripped off by subsequent processing steps. The goal is to first discover cases where the input validation layer executes before one or more parsing layers. That is, user input may go through the following logic in an application: In such cases, the attacker will need to provide input that will pass through the input validator, but after passing through parser2, will be converted into something that the input validator was supposed to stop.
- Argument Injection An attacker changes the behavior or state of a targeted application through injecting data or command syntax through the targets use of non-validated and non-filtered arguments of exposed services or methods.
- OS Command Injection In this type of an attack, an adversary injects operating system commands into existing application functions. An application that uses untrusted input to build command strings is vulnerable. An adversary can leverage OS command injection in an application to elevate privileges, execute arbitrary commands and compromise the underlying operating system.
Exploit-Db
description Solaris. CVE-2001-1583. Remote exploit for solaris platform id EDB-ID:9921 last seen 2016-02-01 modified 2001-08-31 published 2001-08-31 reporter H D Moore source https://www.exploit-db.com/download/9921/ title Solaris <= 8.0 - LPD Command Execution description Solaris LPD Command Execution. CVE-2001-1583. Remote exploit for solaris platform id EDB-ID:16322 last seen 2016-02-01 modified 2010-09-20 published 2010-09-20 reporter metasploit source https://www.exploit-db.com/download/16322/ title Solaris LPD Command Execution description Solaris 2.x/7.0/8 lpd Remote Command Execution Vulnerability. CVE-2001-1583. Remote exploit for solaris platform id EDB-ID:21097 last seen 2016-02-02 modified 2001-08-31 published 2001-08-31 reporter ron1n source https://www.exploit-db.com/download/21097/ title Solaris 2.x/7.0/8 lpd Remote Command Execution Vulnerability description Solaris <= 10 LPD Arbitrary File Delete Exploit (metasploit). CVE-2001-1583. Remote exploit for solaris platform id EDB-ID:1167 last seen 2016-01-31 modified 2005-08-19 published 2005-08-19 reporter Optyx source https://www.exploit-db.com/download/1167/ title Solaris <= 10 LPD Arbitrary File Delete Exploit metasploit
Metasploit
description | This module exploits an arbitrary command execution flaw in the in.lpd service shipped with all versions of Sun Solaris up to and including 8.0. This module uses a technique discovered by Dino Dai Zovi to exploit the flaw without needing to know the resolved name of the attacking system. |
id | MSF:EXPLOIT/SOLARIS/LPD/SENDMAIL_EXEC |
last seen | 2020-04-11 |
modified | 2017-07-24 |
published | 2005-12-31 |
references | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2001-1583 |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/solaris/lpd/sendmail_exec.rb |
title | Solaris LPD Command Execution |
Nessus
NASL family | Gain a shell remotely |
NASL id | SOLARIS_LPD_ENV_CMD_EXEC.NASL |
description | The remote lpd daemon is vulnerable to an environment error that could allow an attacker to execute arbitrary commands on this host. Nessus uses this vulnerability to retrieve the password file of the remote host although any command could be executed. |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 11513 |
published | 2003-04-03 |
reporter | This script is Copyright (C) 2003-2019 and is owned by Tenable, Inc. or an Affiliate thereof. |
source | https://www.tenable.com/plugins/nessus/11513 |
title | Solaris in.lpd Crafted Job Request Arbitrary Remote Command Execution |
code |
|
Packetstorm
data source | https://packetstormsecurity.com/files/download/82322/sendmail_exec.rb.txt |
id | PACKETSTORM:82322 |
last seen | 2016-12-05 |
published | 2009-10-28 |
reporter | H D Moore |
source | https://packetstormsecurity.com/files/82322/Solaris-LPD-Command-Execution.html |
title | Solaris LPD Command Execution |
References
- http://marc.info/?l=bugtraq&m=99929694701826&w=2
- http://www.derkeiler.com/Mailing-Lists/securityfocus/incidents/2001-08/0490.html
- http://metasploit.com/projects/Framework/modules/exploits/solaris_lpd_exec.pm
- http://www.securityfocus.com/bid/3274
- http://www.osvdb.org/15131
- https://exchange.xforce.ibmcloud.com/vulnerabilities/7087