Advertisement






WordPress 2.0.3 SQL Error and Full Path Disclosure

CVE Category Price Severity
N/A CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') Unknown High
Author Risk Exploitation Type Date
Unknown High Remote 2006-07-13
CPE
cpe:cpe:/a:wordpress:wordpress:2.0.3
CVSS EPSS EPSSP
CVSS:4.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 0.05278 0.61603

CVSS vector description

Our sensors found this exploit at: http://cxsecurity.com/ascii/WLB-2006070038

Below is a copy:

Dnia 02-07-2006, nie o godzinie 09:15 +0000, xzerox (at) linuxmail (dot) org [email concealed]
napisaÅ?(a):

> Example:
> 
> http://localhost/wordpress/index.php?paged=-1
> 
> Result:
> 
> WordPress database error: [Erreur de syntaxe pr?s de '-20, 10' ? la ligne 1]
> SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt <= '2006-06-29 12:46:59' AND (post_status = "publish") AND post_status != "attachment" GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT -20, 10

Put this line somewhere in the wp-settings.php file (for example at the
end of the code before the do_action(init) call):

$wpdb->hide_errors();

> 
> ~ Full path ~
> 
> /wp-settings.php
> /wp-admin/admin-footer.php
> /wp-admin/admin-functions.php
> /wp-admin/edit-form.php

in line 60 of wp-settings.php change to:

error_reporting(0);

Now the World is safe.

--
js

Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum