CVE-1999-1188

MEDIUM4.6/ 10.0
Share:
Published: December 27, 1998 at 05:00 AM
Modified: April 3, 2025 at 01:03 AM
Source: cve@mitre.org

Vulnerability Description

mysqld in MySQL 3.21 creates log files with world-readable permissions, which allows local users to obtain passwords for users who are added to the user database.

CVSS Metrics

Base Score
4.6
Severity
MEDIUM
Vector String
AV:L/AC:L/Au:N/C:P/I:P/A:P

Weaknesses (CWE)

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

AI Security Analysis

01 // Technical Summary

MySQL 3.21 is vulnerable to a critical local privilege escalation. The mysqld process creates log files with world-readable permissions, exposing user passwords stored in the database to any local user. This allows attackers to gain unauthorized access to the database and potentially compromise the entire system.

02 // Vulnerability Mechanism

Step 1: User Account Creation: An administrator adds a new user to the MySQL database, including a username and password.

Step 2: Log File Generation: The mysqld process logs information about the user creation, including the password (or a hash) to a log file.

Step 3: Permission Flaw: The mysqld process creates the log file with world-readable permissions (e.g., chmod 644).

Step 4: Local User Access: A local attacker gains access to the system, either through existing credentials or another vulnerability.

Step 5: Log File Reading: The attacker reads the world-readable log file.

Step 6: Password Extraction: The attacker extracts the user's password (or cracks the hash) from the log file.

Step 7: Database Compromise: The attacker uses the extracted credentials to log into the MySQL database and gain unauthorized access.

03 // Deep Technical Analysis

The vulnerability stems from a fundamental flaw in the configuration of the MySQL server. Specifically, the mysqld process, during its logging operations, fails to restrict access to the generated log files. The default file creation mode grants world-readable permissions (e.g., chmod 644), meaning any local user can read the contents of these log files. These logs contain sensitive information, including user passwords, which are stored in plain text or easily reversible formats. The root cause is a lack of secure file permission handling during log file creation, a common oversight in early software development. The absence of proper access controls allows for the unauthorized disclosure of sensitive credentials, leading to a significant security breach.

CVE-1999-1188 - MEDIUM Severity (4.6) | Free CVE Database | 4nuxd