MySQL debian.cnf Plaintext Credential Disclosure

low Nessus Plugin ID 71862

Synopsis

The remote database server may be affected by an information disclosure vulnerability.

Description

The version of MySQL installed on the remote host is 5.5.x prior to 5.5.33. It is, therefore, potentially affected by a race condition in the post-installation script of the MySQL server package (mysql-server-5.5.postinst) that creates the configuration file '/etc/mysql/debian.cnf' with world-readable permissions before restricting the permissions. This allows local users to read the file and obtain credentials for the privileged 'debian-sys-maint' user.

Solution

Upgrade the MySQL server package to 5.5.33 or later on Debian / 5.5.32 or later on Ubuntu.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711600

https://security-tracker.debian.org/tracker/CVE-2013-2162

https://seclists.org/oss-sec/2013/q2/519

Plugin Details

Severity: Low

ID: 71862

File Name: mysql_insecure_cred_file.nasl

Version: 1.5

Type: remote

Family: Databases

Published: 1/8/2014

Updated: 11/26/2019

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.0

CVSS v2

Risk Factor: Low

Base Score: 1.9

Temporal Score: 1.4

Vector: CVSS2#AV:L/AC:M/Au:N/C:P/I:N/A:N

CVSS Score Source: CVE-2013-2162

Vulnerability Information

CPE: cpe:/a:mysql:mysql

Required KB Items: Settings/PCI_DSS

Exploit Ease: No known exploits are available

Patch Publication Date: 12/16/2013

Vulnerability Publication Date: 6/8/2013

Reference Information

CVE: CVE-2013-2162

BID: 60424

DSA: 2818

USN: 1909-1