CVE-1999-1210

HIGH7.2/ 10.0
Share:
Published: November 12, 1997 at 05:00 AM
Modified: April 3, 2025 at 01:03 AM
Source: cve@mitre.org

Vulnerability Description

xterm in Digital UNIX 4.0B *with* patch kit 5 allows local users to overwrite arbitrary files via a symlink attack on a core dump file, which is created when xterm is called with a DISPLAY environmental variable set to a display that xterm cannot access.

CVSS Metrics

Base Score
7.2
Severity
HIGH
Vector String
AV:L/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

Local privilege escalation is possible on vulnerable Digital UNIX systems running xterm. By exploiting a symlink vulnerability related to core dump handling, an attacker can overwrite arbitrary files, potentially gaining unauthorized access or control of the system.

02 // Vulnerability Mechanism

Step 1: Environment Setup: The attacker sets the DISPLAY environment variable to a value that xterm cannot access (e.g., an invalid display or a display the attacker doesn't have permission to use). Step 2: Symlink Creation: The attacker creates a symbolic link to a critical system file, such as /etc/passwd, with a predictable filename that xterm will use for its core dump (e.g., core). Step 3: Triggering the Crash: The attacker executes xterm. Because of the invalid DISPLAY setting, xterm crashes and attempts to create a core dump. Step 4: File Overwrite: xterm, running with the attacker's privileges, attempts to write the core dump data to the file pointed to by the symbolic link (e.g., /etc/passwd). Step 5: Privilege Escalation: The attacker gains control of the system by overwriting the target file (e.g., adding a new user with root privileges to /etc/passwd).

03 // Deep Technical Analysis

The vulnerability stems from a race condition in how xterm handles core dumps when the DISPLAY environment variable is set to an inaccessible display. When xterm crashes due to this misconfiguration, it attempts to create a core dump file. An attacker can exploit this by creating a symbolic link to a critical system file (e.g., /etc/passwd) before xterm attempts to create the core dump. The xterm process, running with the attacker's privileges, then writes the core dump data to the target file, effectively overwriting it. The root cause is the lack of proper input validation and secure file handling, specifically the failure to check if the target file is a symbolic link before writing to it. This allows for a symlink attack to overwrite arbitrary files.

CVE-1999-1210 - HIGH Severity (7.2) | Free CVE Database | 4nuxd