CVE-1999-0082

HIGH10.0/ 10.0
Share:
Published: November 11, 1988 at 05:00 AM
Modified: April 3, 2025 at 01:03 AM
Source: cve@mitre.org

Vulnerability Description

CWD ~root command in ftpd allows root access.

CVSS Metrics

Base Score
10.0
Severity
HIGH
Vector String
AV:N/AC:L/Au:N/C:C/I:C/A:C

Weaknesses (CWE)

NVD-CWE-Other
Source: nvd@nist.gov

AI Security Analysis

01 // Technical Summary

This is a critical vulnerability in legacy FTP daemons that allows attackers to gain root access by exploiting a command injection flaw. Successful exploitation grants complete control over the compromised system, enabling data theft, system compromise, and lateral movement. This vulnerability is extremely dangerous due to its potential for immediate and complete system takeover.

02 // Vulnerability Mechanism

Step 1: Connection Establishment: The attacker establishes an FTP connection to the vulnerable server. Step 2: Command Injection: The attacker sends the CWD ~root command to the FTP server. Step 3: Command Execution: The FTP server, due to a lack of input validation, interprets the ~root as a command to execute, potentially allowing the attacker to inject malicious commands. Step 4: Privilege Escalation: The injected commands are executed with root privileges, granting the attacker complete control over the system. Step 5: System Compromise: The attacker can now execute arbitrary commands, potentially installing backdoors, stealing data, or modifying system configurations.

03 // Deep Technical Analysis

The vulnerability lies within the handling of the CWD (Change Working Directory) command in vulnerable FTP daemons. Specifically, the FTP server fails to properly sanitize or validate user-supplied input when processing the CWD command, especially when the target directory is ~root. This allows an attacker to inject arbitrary commands into the server's execution context. When the server attempts to change the directory to ~root, it executes the injected commands with root privileges, leading to complete system compromise. The root cause is a lack of input validation and improper handling of the ~ (tilde) character, which expands to the home directory of the user, in this case, root's home directory.

CVE-1999-0082 - HIGH Severity (10) | Free CVE Database | 4nuxd