los angeles information security consultants
DigiTrust Assurance

The DigiTrust Group Advisory #071108a: phpMyAdmin "db_create.php" persistent cross-site scripting vulnerability

Product:
phpMyAdmin 2.11.2

Credits:
Omer Singer
The DigiTrust Group
http://www.digitrustgroup.com
November 9, 2007

Risk Level:
HIGH - Vulnerability can be exploited to execute arbitrary HTML and script code in a user's browser session in the context of an affected site. The elevated risk rating reflects the persistent nature of this cross-site scripting attack.

Program Summary:
phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web.
http://www.phpmyadmin.net/

Cross-site Scripting Vulnerability:
When creating a new database, a malicious user can use a client-side Web proxy to place malicious code in the "db" parameter of the POST request. Since db_create.php does not properly sanitize user-supplied input, an administrator could face a persistent XSS attack when the database names are displayed.

Sample Exploit Code:
db=>%22%27><img%20src%3d%22javascript:alert(%27XSS%27)%22>

Vendor Solution:
Fixed in the SVN repository.

Copyright (c) 2007 The DigiTrust Group.

Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of The DigiTrust Group.

Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use on an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.

 





Newsletter Registration





The DigiTrust Group: Advisory #071108a - phpMyAdmin 'db_create.php' persistent cross-site scripting vulnerability