Ravens PHP Scripts

phpMyAdmin Table Comment Script Insertion Vulnerability
Date: Friday, November 17, 2006 @ 10:33:31 UTC
Topic: Security


SECUNIA ADVISORY ID: SA22969

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

CRITICAL: Less critical

IMPACT: Cross Site Scripting

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

DESCRIPTION: Laurent Gaffié and Benjamin Mossé have discovered a vulnerability in phpMyAdmin, which can be exploited by malicious users to conduct script insertion attacks. 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 will be 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. The vulnerability is confirmed in version 2.9.1. Other versions may also be affected.

SOLUTION: Edit the source code to ensure that input is properly sanitised. Don't grant untrusted users the permission to create or alter tables.

PROVIDED AND/OR DISCOVERED BY: Laurent Gaffié and Benjamin Mossé

ORIGINAL ADVISORY: http://s-a-p.ca/index.php?page=OurAdvisories&id=37








This article comes from Ravens PHP Scripts
https://www.ravenphpscripts.com

The URL for this story is:
https://www.ravenphpscripts.com/modules.php?name=News&file=article&sid=2511