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

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