phpMyAdmin: Cross-site scripting vulnerability

Security Team  Contact Address

Updated April 11, 2005

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200504-08 / phpMyAdmin
Release Date April 11, 2005
Latest Revision May 22, 2006: 02
Impact low
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-db/phpmyadmin < 2.6.2_rc1 >= 2.6.2_rc1 All supported architectures

Related bugreports: #87952

Synopsis

phpMyAdmin is vulnerable to a cross-site scripting attack.

2.  Impact Information

Background

phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL databases from a web-browser.

Description

Oriol Torrent Santiago has discovered that phpMyAdmin fails to validate input to the "convcharset" variable, rendering it vulnerable to cross-site scripting attacks.

Impact

By sending a specially-crafted request, an attacker can inject and execute malicious script code, potentially compromising the victim's browser.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All phpMyAdmin users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/phpmyadmin-2.6.2_rc1"

4.  References