id: openam-panel

info:
  name: OpenAM Login Panel - Detect
  author: philippedelteil
  severity: info
  description: OpenAM login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:forgerock:openam:*:*:*:*:*:*:*:*
  metadata:
    max-request: 20
    product: openam
    shodan-query: http.title:"OpenAM"
    vendor: forgerock
  tags: panel,openam,opensso,login,forgerock

http:
  - method: GET
    path:
      - "{{BaseURL}}{{paths}}"
    payloads:
      paths:
        - "/openam/XUI"
        - "/XUI"
        - "/XUI/#login"
        - "/UI"
        - "/sso/XUI"
        - "/sso/UI"
        - "/sso/UI/#login"
        - "/opensso/UI/Login"
        - "/openam/UI/login"
        - "/openam/UI/#loginlogin"
        - "/openam/UI/Login"
        - "/openam/XUI/Login"
        - "/openam/XUI/login"
        - "/openam/XUI/#login"
        - "/am/UI/Login"
        - "/am/UI/#login"
        - "/am/XUI/"
        - "/am/XUI/Login"
        - "/am/json/serverinfo/*"
        - "/openam/json/serverinfo/*"

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'urlArgs: "v='
          - 'Sign in to OpenAM'
          - 'ForgeRock'
          - 'forgerock'
          - 'FRForgotUsername'
          - 'successfulUserRegistrationDestination'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'urlArgs: "v=([0-9.abcd]+)'
# digest: 490a0046304402206816d92b97ae6654f7315a4fb330d4a9848c5a69acd7164e0c41de8cec4b491e02201a4cb990cd9c9c471627c1fc20267e93696f76b4d99e5e06f59f1a511280cbdb:922c64590222798bb761d5b6d8e72950