id: fusionauth-admin-panel

info:
  name: FusionAuth Admin Panel - Detect
  author: ritikchaddha
  severity: info
  classification:
    cpe: cpe:2.3:a:fusionauth:fusionauth:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: fusionauth
    product: fusionauth
    shodan-query:
      - title:"FusionAuth"
      - http.title:"fusionauth"
    fofa-query: title="fusionauth"
    google-query: intitle:"fusionauth"
  tags: panel,fusionauth,detect,login

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/oauth2/authorize"

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<title>Login | FusionAuth'
          - 'FusionAuth.OAuth2'
          - 'content="FusionAuth'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'FusionAuth\.Version = "([0-9.]+)";'
# digest: 490a004630440220733595e3fac184f8d7aaea76cd23e985932af6c5971da8ee6f324a83e6f7bff2022035fd70f96b2d281d74debfcbfff0704d3560a628b39dc5478a5af31f8f4fe753:922c64590222798bb761d5b6d8e72950