WordPress GBK or Big5 character sets SQL injection

wordpress-gbk-big5-sql-injection (38959) The risk level is classified as MediumMedium Risk

Description:

WordPress is vulnerable to SQL injection. If "exact" and "sentence" are enabled, a remote attacker with knowledge of the database table prefix could send specially-crafted SQL statements to the index.php script using the "s" parameter. If DB_CHARSET in the wp-config.php script is set to the GBK or Big5 character set, an attacker could exploit this vulnerability to view, add, modify or delete information in the back-end database.

Platforms Affected:

  • WordPress, WordPress 2.2 - 2.3.1

Remedy:

No remedy available as of July 6, 2008.

Consequences:

Data Manipulation

References:

  • Full-Disclosure Mailing List, Tue, 11 Dec 2007 02:58:10 +0800, WordPress Charset SQL injection vulnerability (resend) at http://seclists.org/fulldisclosure/2007/Dec/0267.html.
  • SecuriTeam Mailing List, 11 Dec. 2007, WordPress Charset SQL injection vulnerability at http://www.securiteam.com/unixfocus/6N00D0AKKM.html.
  • WordPress Web site, WordPress at http://wordpress.org/.
  • BID-26795: WordPress wp-db.php Character Set SQL Injection Vulnerability
  • CVE-2007-6318: SQL injection vulnerability in wp-includes/query.php in WordPress 2.3.1 and earlier allows remote attackers to execute arbitrary SQL commands via the s parameter, when DB_CHARSET is set to (1) Big5, (2) GBK, or possibly other character set encodings that support a \ in a multibyte character.
  • FrSIRT/ADV-2007-4172: WordPress s Parameter Handling Remote SQL Injection Vulnerability
  • SA28005: WordPress GBK/Big5 Character Set "s" SQL Injection
  • SECTRACK ID: 1019071: WordPress Input Validation Flaw in Search Function Lets Remote Users Inject SQL Commands

Reported:

Dec 10, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page