airVision NVR "path" Arbitrary File Disclosure and "id" SQL Injection Vulnerabilities


Description   pennyGrit has discovered two vulnerabilities in airVision NVR, which can be exploited by malicious people to conduct SQL injection attacks and disclose sensitive information.
1) Input passed to the "path" GET parameter in views/file.php is not properly verified before being used to display files. This can be exploited to disclose the contents of arbitrary files via directory traversal sequences.
2) Input passed via the "id" GET parameter to ajax/event.php (when "action" is set to "video", "eids" is set to "1", "videoFormat" is set to 1, and "rate" is set to "1") is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
The vulnerabilities are confirmed in version 1.1.13. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
airVision NVR 1.x
     
Solution   No official solution is currently available.
     
CVE  
     
References   http://www.exploit-db.com/exploits/21990/
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
Misc : Directory traversal - parameter starting with ../
3.2.0
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
Directory traversal using ..\..
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
Directory traversal
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
Directory traversal backward root folder
3.2.0
SQL injection Prevention - GET : suspicious SQL statement in header
4.0.0
SQL injection Prevention - GET : Authentication bypass attempt with OR statement
5.0.0
     


 
 
 
 
 Risk level 
Low 

 Vulnerability First Public Report Date 
2012-10-15 

 Target Type 
Server 

 Possible exploit 
Remote