id: keycloak-openid-config

info:
  name: Keycloak OpenID Configuration - Detect
  author: rodnt
  severity: info
  description: Keycloak Openid configuration information was detected.
  reference:
    - https://issues.jboss.org/browse/KEYCLOAK-571
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 2
  tags: keycloak,config,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/.well-known/openid-configuration"
      - "{{BaseURL}}/auth/realms/master/.well-known/openid-configuration"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - 'issuer'
          - 'authorization_endpoint'
          - 'token_endpoint'
          - 'userinfo_endpoint'
          - 'jwks_uri'
        condition: and
# digest: 4a0a0047304502205614d975e7865ff28b312e718ec067dbac8ea5bf3f4be7b308920de5ee460d34022100bea16d29d9bd7710c5ff85917d90b83d721f00a6e42256353f680b16cefe0b29:922c64590222798bb761d5b6d8e72950