id: cwp-webpanel

info:
  name: Control Web Panel Login Panel - Detect
  author: ffffffff0x
  severity: info
  description: Control Web Panel login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:control-webpanel:webpanel:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    fofa-query: title=="CWP |用户" || title=="Login | CentOS WebPanel" || body="CentOS WebPanel"
    product: webpanel
    vendor: control-webpanel
  tags: panel,centos

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - 'Login | CentOS WebPanel'
          - 'CWP |用户'
          - 'http://centos-webpanel.com'
          - 'CentOS WebPanel'
        condition: or

      - type: word
        part: header
        words:
          - "cwpsrv"
# digest: 4a0a00473045022073284139b51cf9c6afcb5f56fc860a8271694cc8dc7bc1e8168eaf539f0034de022100f364a124b8cd3e132e5d2cbe130d4a1735cb992b7e1280fbf771bc1306145251:922c64590222798bb761d5b6d8e72950