DiY-CMS Blog Module Multiple SQL Injection Vulnerabilities


Description   Multiple vulnerabilities have been discovered in the Blog module for DiY-CMS, which can be exploited by malicious people to conduct SQL injection attacks.
Input passed via various parameters to mod.php is not properly sanitised in multiple scripts before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Examples:
http://[host]/mod.php?mod=blog&start=[sql]
http://[host]/mod.php?mod=blog&modfile=tags&start=[sql]
http://[host]/mod.php?mod=blog&a...month=&year=&start=[sql]
http://[host]/mod.php?mod=blog&a...list&catid=1&start=[sql]
http://[host]/mod.php?mod=blog&a...ost&blogid=1&start=[sql]
http://[host]/mod.php?mod=blog&a...le=approve_posts&start=[sql]
http://[host]/mod.php?mod=blog&a...approve_comments&start=[sql]
The vulnerabilities are confirmed in the version released July 20th 2010. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
Blog (module for DiY-CMS)
     
Solution   Edit the source code to ensure that input is properly sanitised.
     
CVE  
     
References  
     
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 - GET : suspicious combination of 'OR' or 'AND' statements in URL
3.2.0
SQL injection Prevention - GET : suspicious CREATE statement in URL
3.2.0
SQL injection Prevention - GET : suspicious CAST statement in URL
3.2.0
SQL injection Prevention - GET : suspicious OPENROWSET statement in URL
3.2.0
SQL injection Prevention - GET : suspicious DECLARE statement in URL
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 - GET : possible database version probing
3.2.0
SQL injection Prevention - GET : suspicious UPDATE SET statement in URL
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 - GET : suspicious EXEC statement in URL
3.2.0
SQL injection Prevention - GET : block comment delimiters in URL
3.2.0
SQL injection Prevention - GET : suspicious SQL statement in header
4.0.0
     


 
 
 
 
 Risk level 
Moderate 

 Vulnerability First Public Report Date 
2011-12-30 

 Target Type 
Server 

 Possible exploit 
Remote