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,discovery

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: 4a0a004730450221009fbda5c7b0ca364101cef7c27047926f2b163d52f41dc7dc96e8d5943ea53d8e0220742c583358e0493d13280b9376466029b6dd900a42157740588101d9155040fc:922c64590222798bb761d5b6d8e72950