TITLE:
phpMyAdmin Local File Inclusion and Cross-Site Scripting

SECUNIA ADVISORY ID:
SA14382

VERIFY ADVISORY:
http://secunia.com/advisories/14382/

CRITICAL:
Moderately critical

IMPACT:
Cross Site Scripting, Exposure of sensitive information

WHERE:
>From remote

SOFTWARE:
phpMyAdmin 2.x
http://secunia.com/product/1720/
phpMyAdmin 1.x
http://secunia.com/product/1719/

DESCRIPTION:
Maksymilian Arciemowicz has reported some vulnerabilities in
phpMyAdmin, which can be exploited by malicious people to conduct
cross-site scripting attacks and disclose sensitive information.

1) Input passed to the "strServer", "cfg[BgcolorOne]", and
"strServerChoice" parameters in "select_server.lib.php", the
"bgcolor" and "row_no" parameters in "display_tbl_links.lib.php", the
"left_font_family" parameter in "theme_left.css.php", and the
"right_font_family" parameter in "theme_right.css.php" is not
properly sanitised before being returned to users. This can be
exploited to execute arbitrary HTML and script code in a user's
browser session in context of an affected site.

Successful exploitation requires that "register_globals" is enabled.

2) Input passed to the "GLOBALS[cfg][ThemePath]" parameter in
"phpmyadmin.css.php" and "cfg[Server][extension]" parameter in
"database_interface.lib.php" is not properly verified before being
used to include files. This can be exploited to include arbitrary
files from local resources.

Successful exploitation requires that "register_globals" is enabled
and that "magic_quotes_gpc" is disabled.

The vulnerabilities have been reported in version 2.6.1. Other
versions may also be affected.

It is also possible to disclose the full path to certain scripts by
accessing them directly.

SOLUTION:
Update to version 2.6.1-pl1.
http://sourceforge.net/project/showfiles.php?group_id=23067

PROVIDED AND/OR DISCOVERED BY:
Maksymilian Arciemowicz

ORIGINAL ADVISORY:
http://sourceforge.net/tracker/index.php?func=detail&aid=1149383&group_id=23067&atid=377408
http://sourceforge.net/tracker/index.php?func=detail&aid=1149381&group_id=23067&atid=377408

----------------------------------------------------------------------

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

----------------------------------------------------------------------