TITLE: phpMyAdmin "sql_query" Cross-Site Scripting and SQL Code Execution SECUNIA ADVISORY ID: SA19659 VERIFY ADVISORY: http://secunia.com/advisories/19659/ CRITICAL: Less critical IMPACT: Security Bypass, Cross Site Scripting WHERE: >From remote SOFTWARE: phpMyAdmin 2.x http://secunia.com/product/1720/ phpMyAdmin 1.x http://secunia.com/product/1719/ DESCRIPTION: p0w3r has discovered a vulnerability in phpMyAdmin, which can be exploited by malicious people to conduct cross-site scripting attacks and execute arbitrary SQL code. 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. SOLUTION: Do not visit untrusted web sites while being logged into the administration interface. PROVIDED AND/OR DISCOVERED BY: p0w3r ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------