Visit our newest sister site!
Hundreds of free aircraft flight manuals
Civilian • Historical • Military • Declassified • FREE!


TUCoPS :: Web :: Blogs :: c07-1868.htm

Wordpress disclosure of Table Prefix Weakness



Wordpress disclosure of Table Prefix Weakness
Wordpress disclosure of Table Prefix Weakness



Wordpress Full Path disclosure and disclosure of Table Prefix Weakness

Description:

Affected system:
WordPress 2.1Alpha 3(SVN:4662)
WordPress =>2.0.6

xy7 has discovered a weakness in WordPress, which can be exploited by 

malicious people to disclose SQL information and Wordpress Full Path.

The problem is that SQL error messages are returned to the user. This can 

be exploited to disclose the configured table prefix via an invalid "m" 

parameter passed in index.php.

Example:
http://[host]/index.php?m[] 

You will see return information like this:
Warning: rawurlencode() expects parameter 1 to be string, array given in 

[path]\wp-includes\classes.php on line 227

WordPress 数据库错误: [Unknown column 'Arra' in 'where clause']
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND YEAR

(post_date)=Arra AND (post_type = 'post' AND (post_status = 'publish' OR 

post_status = 'private')) ORDER BY post_date DESC LIMIT 0, 10


Solution:
Edit the source use is_array() function to Inspection Var "$m"

Provided and/or discovered by:
Xy7 of Bug.Center.Team found the vulnerability 


TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2014 AOH