TITLE:
MySQL Query Logging Bypass Security Issue

SECUNIA ADVISORY ID:
SA19034

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

CRITICAL:
Less critical

IMPACT:
Security Bypass

WHERE:
Local system

SOFTWARE:
MySQL 5.x
http://secunia.com/product/8355/
MySQL 3.x
http://secunia.com/product/99/
MySQL 4.x
http://secunia.com/product/404/

DESCRIPTION:
1dt.w0lf has discovered a security issue in MySQL, which can be
exploited by malicious users to bypass certain security
restrictions.

The security issue is caused due to an error within the handling of
query logging. This can be exploited to cause part of the query to be
incorrectly logged if the query contains the NULL character.

Example:
mysql_query("/*".chr(0)."*/ SELECT * FROM table");

The security issue has been confirmed in version 5.0.18. Other
versions may also be affected.

SOLUTION:
Grant only trusted users access to the database.

PROVIDED AND/OR DISCOVERED BY:
1dt.w0lf

ORIGINAL ADVISORY:
http://rst.void.ru/papers/advisory39.txt

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

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

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