
Vulnerability research write-up on CVE-2017-7921 — a critical unauthenticated auth bypass in Hikvision IP cameras/DVRs/NVRs, covering root cause, exploitation path, detection, and remediation.
Improper Authentication — Privilege Escalation via Crafted Query Parameter
| CVE ID | CVE-2017-7921 |
| Vulnerability Class | CWE-287: Improper Authentication |
| CVSS v3.0 Base Score | 10.0 (Critical) — AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| CVSS v2.0 Score | 7.5 (High) — AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Disclosure Date | 2017 (ICS-CERT Advisory ICSA-17-124-01) |
| Vendor | Hikvision Digital Technology Co., Ltd. |
| Status | Patched — Hikvision released corrected firmware; unpatched and "grey-market" devices remain exposed |
| PoC / Exploit Author | Jared Brits (K3ysTr0K3R) |
| Write-up Author | MK-ULTRA (github.com/MK-ULTRA-project-monarch) |
CVE-2017-7921 is a critical improper-authentication vulnerability affecting the web server component of firmware on a wide range of Hikvision network cameras, DVRs, and NVRs. The flaw allows a remote, unauthenticated attacker to bypass the device's login mechanism entirely by appending a specially crafted, statically defined query parameter to specific HTTP request paths. Because the authentication check trusts this parameter rather than validating a session or credential set, any request carrying it is treated as though it originated from a privileged internal process.
Successful exploitation grants full administrative access to the device web interface, including live and recorded video streams, device configuration, user account data, and — on many firmware branches — the ability to download the full device configuration file, which itself contains weakly encrypted stored credentials. The vulnerability requires no user interaction, no prior authentication, and no non-standard network position, which combined with the scale of Hikvision's install base has made it a persistent target for botnet recruitment (e.g., Reaper/IoTroop-family activity) and surveillance-feed harvesting since disclosure.
The vulnerability was confirmed across multiple Hikvision product families running firmware branches predating the 2017 security patch. Representative affected lines include:
Hikvision also flagged an ongoing complication specific to this CVE: a large population of "grey-market" devices sold outside authorized distribution channels run modified, non-Hikvision firmware. Standard firmware updates do not reliably remediate these units, and in some cases revert the interface rather than patch it.
Standard Hikvision device authentication is built on HTTP Basic/Digest auth guarding the web management interface. In vulnerable firmware, however, a subset of internal request-handling endpoints contain a secondary, undocumented authentication path intended for internal/debug use. This path does not perform a credential lookup — it inspects the request for the presence of a fixed, hardcoded token and, if found, treats the request as pre-authenticated, bypassing the normal role-based access control (RBAC) checks entirely.
The token is a Base64-encoded representation of a static default credential pair embedded in the firmware itself. Because it is a constant rather than a derived session value, it is identical across every vulnerable device regardless of the administrator password actually configured on that unit — changing the admin password does not mitigate the vulnerability.
At a high level, exploitation follows this sequence:
No memory corruption, buffer overflow, or client-side interaction is involved; the entire attack is a single crafted, stateless HTTP request, which is what makes it trivially scriptable and scanner-friendly.
Three factors account for the CVE's unusually long tail of real-world exposure:
| Metric | Impact |
|---|
tenable_ot_hikvision_CVE-2017-7921.nasl, and CISA/ICS-CERT advisory ICSA-17-124-01.A working PoC for CVE-2017-7921 was authored by Jared Brits (K3ysTr0K3R) and is maintained at github.com/K3ysTr0K3R/CVE-2017-7921-EXPLOIT. Consistent with responsible-disclosure practice, this write-up does not embed exploit source, live target output, or captured credentials/footage.
[ Reserved for PoC screenshots against a device you own or are explicitly authorized to test — e.g., an isolated homelab VM/camera with no proxychains, no third-party targets, and no live footage from a real deployment. ]
tenable_ot_hikvision_CVE-2017-7921.nasl.Prepared for collaborative research documentation. This write-up covers vulnerability mechanics, impact, detection, and remediation for defensive and educational reference; it does not include ready-to-run exploit code or evidence from unauthorized targets.
| Confidentiality | Complete — live/recorded video, device configuration, and stored (weakly encrypted) credentials are exposed. |
| Integrity | Complete — attacker can modify device configuration, user accounts, and stream settings. |
| Availability | Complete — attacker can disable recording, reboot, or otherwise disrupt device operation. |
| Scope | Changed (CVSS v3) — compromise of the device frequently enables pivoting into the broader network or recruitment into distributed botnets. |