WordPress SQL Injection and Cross Site Scripting Vulnerabilities


Description   Multiple vulnerabilities were identified in WordPress, which could be exploited by malicious users to conduct SQL injection and cross site scripting attacks.
The first issue is due to an input validation error in the "post.php" script when processing specially crafted "comment" or "p" parameters, which may be exploited by attackers to cause arbitrary scripting code to be executed by the user's browser.
The second vulnerability is due to an input validation error in the XMLRPC module when processing a specially crafted "HTTP_RAW_POST_DATA" variable, which may be exploited by remote users to conduct SQL injection attacks.
The third flaw is due to an input validation error in the "wp-login.php" file when processing a specially crafted "message" variable, which may be exploited by remote users to manipulate the "Forgotten Password" option.
The fourth vulnerability resides in the "menu-header.php", "wp-atom.php", "wp-rss.php", and "wp-rss2.php" files, which could be exploited by attackers to determine the installation path.
The fifth issue is due to an input validation in the "comments" posting feature that does not properly validate the "HTTP_USER_AGENT" header, which could be exploited by malicious people to conduct SQL injection attacks.
     
Vulnerable Products   Vulnerable Software:
WordPress version 1.5.x and prior
     
Solution   Upgrade to the latest 2.x version : http://wordpress.org/download/
     
CVE   CVE-2005-2110
CVE-2005-2109
CVE-2005-2108
CVE-2005-2107
     
References   http://www.gulftech.org/?node=research&article_id=00085-06282005
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
SQL injection Prevention - GET : suspicious OR statement in URL
3.2.0
SQL injection Prevention - POST : suspicious SELECT statement in data
3.2.0
SQL injection Prevention - GET : suspicious combination of 'OR' or 'AND' statements in URL
3.2.0
SQL injection Prevention - POST : possible version probing in data
3.2.0
SQL injection Prevention - GET : suspicious CREATE statement in URL
3.2.0
SQL injection Prevention - GET : suspicious OPENROWSET statement in URL
3.2.0
SQL injection Prevention - POST : suspicious OPENQUERY statement in data
3.2.0
SQL injection Prevention - POST : suspicious CREATE statement in data
3.2.0
SQL injection Prevention - POST : suspicious UPDATE statement in data
3.2.0
SQL injection Prevention - POST : suspicious UNION statement in data
3.2.0
SQL injection Prevention - GET : suspicious OPENQUERY statement in URL
3.2.0
SQL injection Prevention - GET : suspicious shutdown statement in URL
3.2.0
SQL injection Prevention - GET : suspicious UNION SELECT statement in URL
3.2.0
SQL injection Prevention - POST : suspicious DROP statement in data
3.2.0
SQL injection Prevention - GET : possible database version probing
3.2.0
SQL injection Prevention - POST : suspicious INSERT statement in data
3.2.0
SQL injection Prevention - POST : suspicious OR statement in data
3.2.0
SQL injection Prevention - GET : suspicious UPDATE SET statement in URL
3.2.0
SQL injection Prevention - POST : suspicious EXEC statement in data
3.2.0
SQL injection Prevention - GET : suspicious SELECT statement in URL
3.2.0
SQL injection Prevention - GET : suspicious INSERT statement in URL
3.2.0
SQL injection Prevention - GET : suspicious DROP statement in URL
3.2.0
SQL injection Prevention - POST : suspicious OPENROWSET statement in data
3.2.0
SQL injection Prevention - GET : suspicious EXEC statement in URL
3.2.0
SQL injection Prevention - POST : suspicious HAVING statement in data
3.2.0
     


 
 
 
 
 Risk level 
Moderate 

 Vulnerability First Public Report Date 
2005-06-30 

 Target Type 
Server 

 Possible exploit 
Local & Remote