WordPress GBK/Big5 Character Set "s" SQL Injection
Secunia Advisory: SA28005
Release Date: 2007-12-11
Last Update: 2007-12-14
Popularity: 5,936 views

Critical:
Less critical
Impact: Manipulation of data
Exposure of sensitive information
Where: From remote
Solution Status: Unpatched

Software:WordPress 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2007-6318


Description:
Abel Cheung has discovered a vulnerability in WordPress, which can be exploited by malicious people to conduct SQL injection attacks.

Input passed to the "s" parameter in index.php (when "exact" and "sentence" are set to "1") is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation allows e.g. retrieving administrator password hashes, but requires knowledge of the database table prefix and that "DB_CHARSET" in wp-config.php is set to "GBK" or "Big5".

The vulnerability is confirmed in version 2.3.1 and reported in the previous versions down to and including 2.2.

Solution:
Edit the source code to ensure that input is properly sanitised. Do not use the vulnerable character sets.

Provided and/or discovered by:
Abel Cheung

Changelog:
2007-12-14: Added CVE reference.

Original Advisory:
http://www.abelcheung.org/advisory/20071210-wordpress-charset.txt


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Today
New advisories: 5
New vulnerabilities: 6
Updated advisories: 9

Moderately // 23 views
Gentoo update for courier-authlib

5th Sep, 2008
New advisories: 14
New vulnerabilities: 18
Updated advisories: 22

Less // 316 views
Fedora update for xastir
Less // 334 views
Fedora update for samba
Less // 330 views
Fedora update for bitlbee

Solutions | More...  


Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Linux Kernel "listxattr" Memory Corruption and CHRP Denial of Service // 50 views
2. Trend Micro Products Web Management Authentication Bypass // 40 views
3. Simple Machines Forum Password Reset Vulnerability // 35 views
4. VLC Media Player Multiple Vulnerabilities // 32 views
5. Opera Multiple Vulnerabilities // 32 views
6. Adobe Flash Player Multiple Vulnerabilities // 28 views
7. Microsoft Word Malformed Object Pointer Vulnerability // 26 views
8. phpAdultSite CMS SQL Injection And Cross-Site Scripting // 24 views
9. Microsoft Office Two Code Execution Vulnerabilities // 23 views
10. 3Com Wireless 8760 Access Point HTTP Request Processing Denial of Service // 23 views