LightNEasy "page" and "id" SQL Injection Vulnerabilities


Description   Russ McRee has discovered some vulnerabilities in LightNEasy, which can be exploited by malicious users and malicious people to conduct SQL injection attacks.
1) Input passed via the "page" parameter to LightNEasy.php is not properly sanitised before being used in SQL queries, if it contains a URL-encoded NULL byte. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation of this vulnerability requires that "magic_quotes_gpc" is disabled.
2) Input passed via the "id" parameter to LightNEasy.php (when "do" is set to "users" and "action" is set to "edituser") is not properly sanitised before being used in SQL queries, if it contains a URL-encoded NULL byte. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation of this vulnerability requires access to the administrative interface and that "magic_quotes_gpc" is disabled.
NOTE: The vulnerabilities can further be exploited to conduct cross-site scripting attacks via SQL error messages.
The vulnerabilities are confirmed in version 3.2.1. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
LightNEasy 3.x
     
Solution   Update to version 3.2.4.
     
CVE  
     
References   LightNEasy:
http://www.lightneasy.org/punbb/viewtopic.php?id=1207
Russ McRee:
http://holisticinfosec.org/content/view/168/45/
     
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 
2010-12-07 

 Target Type 
Server 

 Possible exploit 
Remote