id: craftercms-panel

info:
  name: CrafterCMS Login Panel - Detect
  author: righettod
  severity: info
  description: |
    CrafterCMS login panel was detected.
  reference:
    - https://craftercms.org/
  classification:
    cpe: cpe:2.3:a:craftercms:craftercms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: craftercms
    product: craftercms
    shodan-query: http.title:"craftercms"
  tags: panel,craftercms,login,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/studio/login"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "craftercmsnext", "login - craftercms", "crafter software corporation")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'Copyright\s+\(C\)\s+([0-9-]+)\s+Crafter'
# digest: 4a0a0047304502204e2c87f37520d3a0b95562a7a50e2a56be82dce9d3e1ac6403e79dae518a3aa0022100953a1b90141b02ebbef80fe14aef40dec35dfbfa06d1c3157a4bdedbffdbedeb:922c64590222798bb761d5b6d8e72950