id: ametys-admin-login

info:
  name: Ametys Admin Login Panel
  author: pathtaga
  severity: info
  description: An Ametys admin login panel was discovered.
  classification:
    cwe-id: CWE-200
    cpe: cpe:2.3:a:ametys:ametys:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: ametys
    product: ametys
  tags: panel,ametys,cms

http:
  - method: GET
    path:
      - '{{BaseURL}}/_admin/index.html'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Ametys - Log in'
          - '<span class="ametys-version">'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '&nbsp;([0-9.]+)</span>'
# digest: 4a0a00473045022100d9062dce01ec3c320858cb48322c2ea37c297cede8dd8597db7c31e0f3b1baf0022069bf2573e7b019dbe417662f9d76c0acf5a1b232426bdd2a51da38691b7bf73b:922c64590222798bb761d5b6d8e72950