Hacking Into Wi Fi Camera Tp Link Tapo c200 Cve 2021 4045
The TP-Link Tapo C200 camera firmware before version 1.1.16 contains a command injection flaw in the uhttpd web server due to insufficient checks on user input. An attacker on the same network could exploit this to execute commands as root and access the live video stream.
One day during the regular daily reading of vulnerability databases and I came across of one interesting vulnerability (CVE-2021–4045) for Wi-Fi camera which I own. I bought this camera long time ago for monitoring of my baby while sleeping.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the uhttpd web server on the camera fails to properly sanitise user input, allowing command injection.
Impact
An attacker on the same network could gain root shell access and view the live video stream from the camera.
What the attacker needed
Attacker on the same network; camera firmware below 1.1.16
The fix
The vulnerability was fixed in firmware version 1.1.16 Build 211209 Rel. 37726N.
How it was found
- Check the camera's firmware version to confirm it is below 1.1.16.
- Obtain the public proof-of-concept script from GitHub.
- Modify the netcat command in the script to work on the attacker's system.
- Run the script with the 'shell' option, providing the camera's IP and the attacker's IP.
- Run the script with the 'rtsp' option to get streaming credentials.
- Use a media player that supports RTSP to view the live stream.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is about a security hole in a Wi-Fi camera that lets someone on the same network run commands on the camera without logging in. The flaw is in the camera's web server, which does not properly check what users send to it, so an attacker can sneak in commands. Once in, they can control the camera and watch its video feed.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.