GLSA-200504-30 : phpMyAdmin: Insecure SQL script installation

medium Nessus Plugin ID 18169

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200504-30 (phpMyAdmin: Insecure SQL script installation)

The phpMyAdmin installation process leaves the SQL install script with insecure permissions.
Impact :

A local attacker could exploit this vulnerability to obtain the initial phpMyAdmin password and from there obtain information about databases accessible by phpMyAdmin.
Workaround :

Change the password for the phpMyAdmin MySQL user (pma):
mysql -u root -p SET PASSWORD FOR 'pma'@'localhost' = PASSWORD('MyNewPassword');
Update your phpMyAdmin config.inc.php:
$cfg['Servers'][$i]['controlpass'] = 'MyNewPassword';

Solution

All phpMyAdmin users should change password for the pma user as described above and upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-db/phpmyadmin-2.6.2-r1'

See Also

https://security.gentoo.org/glsa/200504-30

Plugin Details

Severity: Medium

ID: 18169

File Name: gentoo_GLSA-200504-30.nasl

Version: 1.15

Type: local

Published: 5/2/2005

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.5

CVSS v2

Risk Factor: Medium

Base Score: 4.6

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:phpmyadmin, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 4/30/2005

Vulnerability Publication Date: 4/30/2005

Reference Information

CVE: CVE-2005-1392

GLSA: 200504-30