Vigil@nce: phpMyAdmin, PHP code execution
April 2009 by Vigil@nce
SYNTHESIS OF THE VULNERABILITY
An attacker can inject PHP code in a phpMyAdmin configuration
file, in order to execute it.
Severity: 2/4
Consequences: user access/rights
Provenance: user account
Means of attack: 1 attack
Ability of attacker: technician (2/4)
Confidence: confirmed by the editor (5/5)
Diffusion of the vulnerable configuration: high (3/3)
Creation date: 16/04/2009
IMPACTED PRODUCTS
– Fedora
– Unix - plateform
DESCRIPTION OF THE VULNERABILITY
The phpMyAdmin server is used to administer a MySQL database via a
web browser.
The setup/lib/ConfigFile.class.php file generates a configuration
file for a database. This configuration file is written in PHP
language and contains the server name inside a comment:
/* Server: name */
However, if the name is "n*/code;/*", phpMyAdmin generates:
/* Server: n*/code;/* */
Attacker’s code then runs when PHP interprets the configuration
file.
An authenticated attacker can thus inject PHP code in a phpMyAdmin
configuration file, in order to execute it.
CHARACTERISTICS
Identifiers: BID-34526, CVE-2009-1285, FEDORA-2009-3692,
FEDORA-2009-3700, PMASA-2009-4, VIGILANCE-VUL-8641
http://vigilance.fr/vulnerability/phpMyAdmin-PHP-code-execution-8641