Secunia Logo  
 
phpMyAdmin Script Insertion and IP Address Check Bypass
Secunia Advisory: SA22969
Release Date: 2006-11-17
Last Update: 2007-01-19
Popularity: 12,174 views

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

Software:phpMyAdmin 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-6942
CVE-2006-6943
CVE-2006-6944


Description:
Some vulnerabilities have been discovered in phpMyAdmin, which can be exploited by malicious users to conduct script insertion attacks and by malicious people to bypass security restrictions.

1) Input passed to the "Table comments" form field parameter in tbl_create.php and tbl_properties_operations.php is not properly sanitised before being used. 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 database containing the table is viewed.

Successful exploitation requires valid user credentials.

2) Input passed in the "X-Forwarded-For", "X-Forwarded", "Forwarded-For", "Forwarded", "Via", "X-Coming-From", and "Coming-From" HTTP headers is trusted from all clients. This can be exploited to bypass IP address checks by connecting to phpMyAdmin and sending arbitrary values in one of the listed headers.

The vulnerabilities are confirmed in version 2.9.1. Other versions may also be affected.

Solution:
Update to version 2.9.1.1.

Provided and/or discovered by:
1) Laurent Gaffié and Benjamin Mossé
2) Christian Schmidt

Changelog:
2006-11-20: Added vulnerability #2 and information about vendor update.
2007-01-19: Added CVE reference.

Original Advisory:
Laurent Gaffié and Benjamin Mossé:
http://s-a-p.ca/index.php?page=OurAdvisories&id=37

phpMyAdmin:
http://www.phpmyadmin.net/home_page/security.php?issue=PMASA-2006-7
http://www.phpmyadmin.net/home_page/security.php?issue=PMASA-2006-9


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. Mambo "GLOBALS['mosConfig_absolute_path']" File Inclusion // 27 views
2. Drupal Project Module File Upload and Cross-Site Scripting // 27 views
3. Internet Explorer Data Binding Memory Corruption Vulnerability // 23 views
4. Cisco Global Site Selector DNS Request Denial of Service // 22 views
5. Drupal Project Issue Tracking Module Multiple Vulnerabilities // 22 views
6. ArticleBeach Script "page" File Inclusion Vulnerability // 21 views
7. SmbFTPD Long Command Processing Vulnerability // 21 views
8. Lasso OpenSSL "DSA_verify()" Spoofing Vulnerability // 19 views
9. NTP OpenSSL "EVP_VerifyFinal()" Spoofing Vulnerability // 19 views
10. PHP-Fusion Members CV Module "sortby" SQL Injection Vulnerability // 17 views