How to Identify Vulnerable Hikvision Devices (IoT) to CVE-2017–7921
Hikvision cameras running vulnerable firmware expose an unauthenticated information disclosure endpoint that reveals hardware details, software versions, user credentials and camera snapshots. An attacker could use this to identify and access affected devices, including live RTSP streams.
blog.bugzero.io
Published on blog.bugzero.io
In today’s interconnected world, Internet of Things (IoT) devices, such as IP cameras, are ubiquitous. However, these devices are often vulnerable to security flaws that can be exploited by attackers.
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 an improper authentication check on a specific camera endpoint, allowing unauthenticated access to sensitive data.
What the attacker needed
Internet-accessible Hikvision camera; Vulnerable firmware (CVE-2017-7921)
The fix
Devices should be updated with firmware that addresses the vulnerability, but the text notes many remain exposed due to inability to update.
How it was found
- Use Shodan to search for and download a list of potentially vulnerable Hikvision cameras.
- Parse the Shodan results to extract IP addresses.
- Scan the IP list with Nmap and a custom Lua script to identify devices susceptible to CVE-2017-7921.
- Use the Metasploit module gather/[redacted] to exploit the vulnerability.
- Use FFmpeg to access and view the live RTSP stream from a compromised camera.
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.
Some Hikvision security cameras have a flaw that lets anyone on the internet read private information from them without logging in. That information includes things like the camera's software version, usernames and passwords, and even pictures from the camera. Attackers can find these cameras using search engines and then watch the live video feed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.