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,622 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

Today
New advisories: 19
New vulnerabilities: 68
Updated advisories: 62

Moderately // 253 views
Debian update for php5
Moderately // 188 views
Atarone CMS Multiple Vulnerabilities
Moderately // 219 views
Debian update for squid
Less // 222 views
SUSE update for mercurial
Moderately // 268 views
SUSE update for openssh
Less // 210 views
Fedora update for mediawiki

Solutions | More...  


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. Debian update for php5 // 58 views
2. Atarone CMS Multiple Vulnerabilities // 46 views
3. Juniper Products Neighbor Discovery Protocol Neighbor Solicitation Vulnerability // 41 views
4. CMME Information Disclosure Security Issues // 40 views
5. Debian update for squid // 39 views
6. H-Sphere webshell4 Cross-Site Scripting and Request Forgery // 36 views
7. MetaGauge Directory Traversal Vulnerability // 33 views
8. SUSE update for mercurial // 31 views
9. SUSE update for openssh // 30 views
10. HP-UX NFS/ONCplus Denial of Service Vulnerability // 29 views