id: casaos-panel

info:
  name: CasaOS Login Panel - Detect
  author: DhiyaneshDK
  severity: info
  description: CasaOS 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:o:icewhale:casaos:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"CasaOS"
    product: casaos
    vendor: icewhale
  tags: panel,casaos,login,detect

http:
  - method: GET
    path:
      - '{{BaseURL}}'
      - '{{BaseURL}}/#/login'

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "/CasaOS-UI/"
          - "We're sorry but CasaOS"
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100b2e8088b5bca65447b26c718edbcc29b246a95a521f66f7c8e7753e41613b36002203f2c06cbc9311e957274f56d8fc793bf15ab6b551857898341fc224128b56cbc:922c64590222798bb761d5b6d8e72950