Menu

Search for hundreds of thousands of exploits

"Visual Tools DVR3.0.6.16_ vx series 4.2.19.2 - Multiple Vulnerabilities"

Author

Exploit author

"Andrea Fabrizi"

Platform

Exploit platform

hardware

Release date

Exploit published date

2012-10-16

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Exploit Title: Visual Tools DVR multiple vulnerabilities
# Date: 2012-10-15
# Exploit Author: Andrea Fabrizi
# Vendor Homepage: http://www.visual-tools.com/
# Version: VS Series <= 3.0.6.16, VX Series <= 4.2.19.2
# Tested on: VS Series 3.0.6.16/VX Series 4.2.19.2

Visual Tools develops, manufactures and commercializes video
surveillance and video observations systems under the global brand
name VideoSafe Technology or under other companies brand names.

The DVR systems are based on x86 Debian GNU Linux embedded (aka
emdebian) and the entire framework and software are written using
Python.

After a full reverse engineering of the firmware i discovered some
interesting vulnerabilities, that allow an unauthorized user to access
the DVR web interface and gain a root shell on the system. At the time
i write this advisory, all DVR products commercialized by Visual
Tools, based on this firmware, are vulnerable.

1]======== Administration password disclosure ========
The system expose an hidden cgi that disclose the
Operator/Supervisor/Administrator password if invoked during the first
ten minutes after system boot.

- http://DVR_ADDRESS/cgi-bin/util/passwords.py

Is possible to write a simple script that check the cgi, every five
minutes for example, waiting for the device reboot, that sooner or
later, will happen :)

2]======== Default Administration password ========
As the previous vulnerability, also in this case is possible to access
any DVR system, during the first ten minutes after system boot, using
an hard-coded password.

The default password is: elefante (valid for
Operator/Supervisor/Administrator account)

3]======== Log files disclosure ========
The system expose an hidden cgi that allow any unauthenticated user to
get the system log files. By default the script does not works,
because the zip file is generated into the cgi-bin directory.
But... taking advantage of a directory traversal vulnerability that
affect the same script, is possible to write the zip file into the
apache root directory, and download it directly via browser.

- http://DVR_ADDRESS/cgi-bin/util/ziplogs.py?filename=../../html/logs
- http://DVR_ADDRESS/logs.zip (the zip file generated)

Moreover, the file "service.log" contains the Session ID of the
authenticated user, that can be used to hijack an existing session.

4]======== recv_ip_filtering.py command injection ========
Is possible, for authenticated users, to exploit a command injection
vulnerability that affects the script
/cgi-bin/conf/recv_ip_filtering.py.
This script, used to add or remove ip addresses from the local
iptables, accept one parameter that contains a list of IPs separated
by space, so is not possible to execute directly a command that
contains a space char.
A workaround can be done passing the command through an http header
(user-agent for example), and invoking the corresponding environment
variable.

This is a sample request:
POST http://DVR_ADDRESS/cgi-bin/conf/recv_ip_filtering.py HTTP/1.1
User-Agent: [COMMAND]
Cookie: language=en; session=VALID_SESSION_ID; user=administrator;
current_page=main/400_Mconf/200_Mnetwork
Content-Type: application/x-www-form-urlencoded
Content-Length: 90

iplistFields=192.168.0.1+192.168.0.2%3b$HTTP_USER_AGENT%3b

The command will be executed with the privilege of the apache user.

5]======== init_diskmgr insecure permissions ========
The script "/home/apache/DiskManager/cron/init_diskmgr", writable by
the apache user, is executed by crontab every 15 minutes, with root
privileges.
So, editing the script and waiting the scheduled execution, is
possible to run command on the system with root privileges.

By default the ssh access is denied because the /etc/shadow don't
contains the root password shadow, but exploiting this vulnerability
is possible to add it and gain ssh access to the system.


**************************************************************
TIME-LINE

- 21/09/2012: Vendor contact. No response.
- 15/10/2012: Disclosure.
**************************************************************
Release Date Title Type Platform Author
2020-12-02 "aSc TimeTables 2021.6.2 - Denial of Service (PoC)" local windows "Ismael Nava"
2020-12-02 "Anuko Time Tracker 1.19.23.5311 - No rate Limit on Password Reset functionality" webapps php "Mufaddal Masalawala"
2020-12-02 "Ksix Zigbee Devices - Playback Protection Bypass (PoC)" remote multiple "Alejandro Vazquez Vazquez"
2020-12-02 "Mitel mitel-cs018 - Call Data Information Disclosure" remote linux "Andrea Intilangelo"
2020-12-02 "Artworks Gallery 1.0 - Arbitrary File Upload RCE (Authenticated) via Edit Profile" webapps multiple "Shahrukh Iqbal Mirza"
2020-12-02 "DotCMS 20.11 - Stored Cross-Site Scripting" webapps multiple "Hardik Solanki"
2020-12-02 "ChurchCRM 4.2.1 - Persistent Cross Site Scripting (XSS)" webapps multiple "Mufaddal Masalawala"
2020-12-02 "ChurchCRM 4.2.0 - CSV/Formula Injection" webapps multiple "Mufaddal Masalawala"
2020-12-02 "NewsLister - Authenticated Persistent Cross-Site Scripting" webapps multiple "Emre Aslan"
2020-12-02 "IDT PC Audio 1.0.6433.0 - 'STacSV' Unquoted Service Path" local windows "Manuel Alvarez"
Release Date Title Type Platform Author
2020-11-30 "ATX MiniCMTS200a Broadband Gateway 2.0 - Credential Disclosure" webapps hardware "Zagros Bingol"
2020-11-30 "Intelbras Router RF 301K 1.1.2 - Authentication Bypass" webapps hardware "Kaio Amaral"
2020-11-27 "Ruckus IoT Controller (Ruckus vRIoT) 1.5.1.0.21 - Remote Code Execution" webapps hardware "Emre SUREN"
2020-11-24 "Seowon 130-SLC router 1.0.11 - 'ipAddr' RCE (Authenticated)" webapps hardware maj0rmil4d
2020-11-23 "TP-Link TL-WA855RE V5_200415 - Device Reset Auth Bypass" webapps hardware malwrforensics
2020-11-19 "Fortinet FortiOS 6.0.4 - Unauthenticated SSL VPN User Password Modification" webapps hardware "Ricardo Longatto"
2020-11-19 "Genexis Platinum 4410 Router 2.1 - UPnP Credential Exposure" remote hardware "Nitesh Surana"
2020-11-16 "Cisco 7937G - DoS/Privilege Escalation" remote hardware "Cody Martin"
2020-11-13 "ASUS TM-AC1900 - Arbitrary Command Execution (Metasploit)" webapps hardware b1ack0wl
2020-11-13 "Citrix ADC NetScaler - Local File Inclusion (Metasploit)" webapps hardware "RAMELLA Sebastien"
Release Date Title Type Platform Author
2013-12-24 "Synology DSM 4.3-3810 - Directory Traversal" webapps cgi "Andrea Fabrizi"
2013-09-12 "Synology DiskStation Manager (DSM) 4.3-3776 - Multiple Vulnerabilities" webapps linux "Andrea Fabrizi"
2013-08-21 "Samsung DVR Firmware 1.10 - Authentication Bypass" webapps hardware "Andrea Fabrizi"
2013-01-31 "Buffalo TeraStation TS-Series - Multiple Vulnerabilities" webapps hardware "Andrea Fabrizi"
2012-10-16 "Visual Tools DVR3.0.6.16_ vx series 4.2.19.2 - Multiple Vulnerabilities" webapps hardware "Andrea Fabrizi"
2012-09-05 "QNAP Turbo NAS TS-1279U-RP - Multiple Path Injections" webapps hardware "Andrea Fabrizi"
2011-12-18 "novell sentinel log manager 1.2.0.1 - Directory Traversal" webapps multiple "Andrea Fabrizi"
2011-01-31 "Joomla! Component com_virtuemart 1.1.6 - SQL Injection" webapps php "Andrea Fabrizi"
2009-12-05 "phpShop 0.8.1 - Multiple Vulnerabilities" webapps php "Andrea Fabrizi"
2009-10-15 "Snitz Forums 2000 - Multiple Cross-Site Scripting Vulnerabilities" webapps asp "Andrea Fabrizi"
2009-10-15 "Snitz Forums 2000 3.4.7 - Sound Tag Onload Attribute Cross-Site Scripting" webapps php "Andrea Fabrizi"
2009-10-15 "Snitz Forums 2000 3.4.7 - 'pop_send_to_friend.asp?url' Cross-Site Scripting" webapps php "Andrea Fabrizi"
2009-10-14 "Everfocus 1.4 - EDSR Remote Authentication Bypass" webapps multiple "Andrea Fabrizi"
2009-10-09 "Docebo 3.6.0.3 - Multiple SQL Injections" webapps php "Andrea Fabrizi"
import requests
response = requests.get('http://127.0.0.1:8181?format=json')

For full documentation follow the link above

Cipherscan. Find out which SSL ciphersuites are supported by a target.

Identify and fingerprint Web Application Firewall (WAF) products protecting a website.