Secunia Logo  
 
phpMyAdmin Cross-Site Scripting and SQL Code Execution
Secunia Advisory: SA19659
Release Date: 2006-04-17
Last Update: 2006-05-22
Popularity: 10,968 views

Critical:
Less critical
Impact: Security Bypass
Cross Site Scripting
Where: From remote
Solution Status: Vendor Patch

Software:phpMyAdmin 1.x
phpMyAdmin 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-1803
CVE-2006-1804
CVE-2006-2031


Description:
Two vulnerabilities have been discovered in phpMyAdmin, which can be exploited by malicious people to conduct cross-site scripting attacks and execute arbitrary SQL code.

1) Input passed to the "sql_query" parameter in sql.php is not properly sanitised before being used. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site or execute arbitrary SQL code by tricking an administrative user into following a specially crafted link while being logged in.

Example:
http://[host]/sql.php?lang=de-utf-8&server=1&collation_connection=utf8_general_ci&db=[database]&table=fu&goto=tbl_properties_structure.php&back=tbl_properties_structure.php&sql_query=[code]

The vulnerability has been confirmed in version 2.8.0.3 and has also been reported in version 2.7.0-pl1. Other versions may also be affected.

2) Input passed to the "lang" parameter in index.php isn't properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

The vulnerability has been confirmed in version 2.8.0.3 and has also been reported in prior versions for the 2.8.0 branch.

Solution:
Update to version 2.8.1.
http://www.phpmyadmin.net/home_page/downloads.php

Provided and/or discovered by:
1) p0w3r
2) r0t

Changelog:
2006-04-19: Added CVE references.
2006-04-21: Added additional vulnerability provided by r0t.
2006-04-28: Added CVE reference.
2006-05-15: Updated "Description" and "Solution" sections.
2006-05-22: Updated "Solution" section and added link to PMASA-2006-3.

Original Advisory:
1) http://www.phpmyadmin.net/home_page/security.php?issue=PMASA-2006-3
2) http://pridels.blogspot.com/2006/04/phpmyadmin-xss-vuln.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. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 55 views
2. Zeroboard Multiple Vulnerabilities // 41 views
3. Symantec Mail Security for SMTP Response Handling Denial of Service // 32 views
4. Red Hat update for openssl // 26 views
5. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 24 views
6. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 23 views
7. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 20 views
8. Red Hat update for xterm // 19 views
9. Fedora update for proftpd // 18 views
10. Red Hat update for dbus // 18 views