Secunia Logo
Netsikker nu! 2008
 
phpMyAdmin Database Name SQL Injection and Script Insertion
Secunia Advisory: SA27630
Release Date: 2007-11-12
Last Update: 2007-11-15
Popularity: 8,706 views

Critical:
Less critical
Impact: Cross Site Scripting
Manipulation of data
Where: From remote
Solution Status: Vendor Patch

Software:phpMyAdmin 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2007-5976
CVE-2007-5977


Description:
Two vulnerabilities have been reported in phpMyAdmin, which can be exploited by malicious users to conduct script insertion and SQL injection attacks.

1) Input passed to the "db" parameter in db_create.php is not properly sanitised before being stored. This can be exploited to insert arbitrary HTML and script code, which is executed in a user's browser session in context of an affected site when the malicious data is viewed.

Successful exploitation requires that the attacker has CREATE DATABASE credentials, that the target user has valid user credentials, and that the target user uses a web browser that executes JavaScript code in <img> HTML elements (e.g. Opera).

2) Input passed to the "db" parameter in db_create.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation requires that the attacker has CREATE DATABASE credentials.

The vulnerabilities are reported in version 2.11.2. Prior versions may also be affected.

Solution:
Update to version 2.11.2.1.

Provided and/or discovered by:
1) Omer Singer, The DigiTrust Group
2) Reported by the vendor.

Changelog:
2007-11-15: Added CVE reference.

Original Advisory:
phpMyAdmin:
http://sourceforge.net/project/shownotes.php?release_id=553333
http://www.phpmyadmin.net/home_page/security.php?issue=PMASA-2007-7


1) http://www.digitrustgroup.com/advisories/tdg-advisory071108a.html


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Internet Explorer Three Vulnerabilities // 60 views
2. Oracle Products Multiple Vulnerabilities // 57 views
3. Sun Solaris "sadmind" Buffer Overflow Vulnerability // 48 views
4. BEA WebLogic Server Multiple Vulnerabilities // 48 views
5. BEA WebLogic Workshop NetUI Pageflow Information Disclosure Vulnerability // 38 views
6. BEA WebLogic Server Multiple Authorizers Security Bypass // 38 views
7. WordPress WP Comment Remix Plugin Multiple Vulnerabilities // 36 views
8. BEA WebLogic Workshop NetUI Tags Information Disclosure Vulnerability // 34 views
9. VLC Media Player XSPF Processing Memory Corruption Vulnerability // 33 views
10. MyPHPDating "id" SQL Injection Vulnerability // 28 views