id: CVE-2024-7332

info:
  name: TOTOLINK CP450 v4.1.0cu.747_B20191224 - Hard-Coded Password Vulnerability
  author: s4e-io
  severity: critical
  description: |
    A critical vulnerability has been discovered in TOTOLINK CP450 version 4.1.0cu.747_B20191224. This vulnerability affects an unknown part of the file /web_cste/cgi-bin/product.ini of the Telnet Service component. The issue stems from the use of a hard-coded password, which can be exploited remotely without any user interaction.
  impact: |
    Unauthenticated attackers can retrieve hard-coded credentials from the accessible product.ini file, enabling complete device compromise through Telnet service access with administrative privileges.
  remediation: |
    Contact TOTOLINK for security updates addressing the hard-coded password vulnerability in CP450 firmware version 4.1.0cu.747_B20191224, or implement network segmentation to restrict access.
  reference:
    - https://github.com/abcdefg-png/IoT-vulnerable/blob/main/TOTOLINK/CP450/product.md
    - https://nvd.nist.gov/vuln/detail/CVE-2024-7332
    - https://cvefeed.io/vuln/detail/CVE-2024-7332
    - https://www.tenable.com/cve/CVE-2024-7332
  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-7332
    cwe-id: CWE-259
    epss-score: 0.88606
    epss-percentile: 0.99521
    cpe: cpe:2.3:a:totolink:cp450:4.1.0cu.747_b20191224:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: totolink
    product: cp450_firmware
    fofa-query: title="totolink"
  tags: cve,cve2024,totolink,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/web_cste/cgi-bin/product.ini"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body,"[PRODUCT]","[WLAN]","HostName")'
          - "status_code == 200"
        condition: and
# digest: 4b0a0048304602210094acfdb807687e2b481805e7c34a5f58d5bc0ad2d9b9d0ab36d7744a5416080b02210084bac10c5545f5f8c4f140bbfd9881cded452c0e4b374a2aaae6088ec54c9a27:922c64590222798bb761d5b6d8e72950