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,666 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. Trend Micro ServerProtect Multiple Buffer Overflow Vulnerabilities // 42 views
2. IceWarp Web Mail Two File Inclusion Vulnerabilities // 30 views
3. CA ARCserve Backup Multiple Vulnerabilities // 26 views
4. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 26 views
5. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 26 views
6. CUPS Multiple Vulnerabilities // 24 views
7. Subdreamer Light Global Variables SQL Injection Vulnerability // 22 views
8. Built2go Real Estate Listings "event_id" SQL Injection // 21 views
9. FUJITSU Interstage Products Apache Tomcat Security Bypass // 21 views
10. Red Hat update for cups // 20 views