Wednesday, 12. September 2007
Remote Vulnerabilities Discovered in phpMyAdmin
phpMyAdmin is a program to administrate MySQL over the Web. The Common Vulnerabilities and Exposures project has identified several problems with phpMyAdmin. First, the PMA_ArrayWalkRecursive function in libraries/common.lib.php does not limit recursion on arrays provided by users, which allows context-dependent attackers to cause a denial of service (web server crash) via an array with many dimensions; however, this issue affects only the stable distribution (Etch).
Another issue that affects the stable distribution (Etch) is an incomplete blacklist vulnerability in index.php that allows remote attackers to conduct cross-site scripting (XSS) attacks by injecting arbitrary JavaScript or HTML in a (1) db or (2) table parameter value followed by an uppercase end tag, which bypasses the protection against lowercase .
Multiple cross-site scripting (XSS) vulnerabilities allow remote attackers to inject arbitrary web script or HTML via (1) the fieldkey parameter to browse_foreigners.php or (2) certain input to the PMA_sanitize function.
Multiple XSS vulnerabilities allow remote attackers to inject arbitrary HTML or web script via (1) a comment for a table name, as exploited through (a) db_operations.php, (2) the db parameter to (b) db_create.php, (3) the newname parameter to db_operations.php, the (4) query_history_latest, (5) query_history_latest_db, and (6) querydisplay_tab parameters to (c) querywindow.php, and (7) the pos parameter to (d) sql.php. But this issue affects only the oldstable distribution (Sarge).
In the old stable distribution (Sarge) phpMyAdmin allows remote attackers to bypass Allow/Deny access rules that use IP addresses via false headers.
For etch) the problems have been fixed in version 2.9.0.3-4, and for sarge the problems have been fixed in version 2.6.2-3sarge4. You are
recommended to upgrade your phpmyadmin packages to these modified versions.