Bug 1847428 (CVE-2020-10776)

Summary: CVE-2020-10776 keycloak: OIDC redirect_uri allows dangerous schemes resulting in potential XSS
Product: [Other] Security Response Reporter: Paramvir jindal <pjindal>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aboyko, aileenc, akoufoud, alazarot, almorale, anstephe, avibelli, bgeorges, chazlett, cmoulliard, dkreling, drieden, etirelli, ggaughan, gmalinko, ibek, ikanello, janstey, jbalunas, jochrist, jpallich, jstastny, jwon, krathod, kverlaen, lthon, mnovotny, mszynkie, pdrozd, pgallagh, pjindal, rrajasek, rruss, rsynek, sdaley, security-response-team, sthorger
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: keycloak 12.0.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Keycloak, where it is possible to add unsafe schemes for the redirect_uri parameter. This flaw allows an attacker to perform a Cross-site scripting attack.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 20:21:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1843190    

Description Paramvir jindal 2020-06-16 11:26:24 UTC
OIDC redirect_uri allows dangerous schemes resulting in potential XSS

https://issues.redhat.com/browse/KEYCLOAK-14306

Comment 2 Paramvir jindal 2020-06-16 11:26:38 UTC
Mitigation:

Trusted Hosts Policy could be used to mitigate this attack : 
https://www.keycloak.org/docs/latest/securing_apps/index.html#client-registration-policies

Comment 4 Paramvir jindal 2020-06-17 08:18:30 UTC
Acknowledgments:

Name: Lauritz Holtmann (@_lauritz_) (Chair for Network and Data Security at Ruhr University Bochum)

Comment 8 errata-xmlrpc 2020-11-04 19:24:22 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.4.3

Via RHSA-2020:4931 https://access.redhat.com/errata/RHSA-2020:4931

Comment 9 errata-xmlrpc 2020-11-04 19:29:55 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.4 for RHEL 7

Via RHSA-2020:4930 https://access.redhat.com/errata/RHSA-2020:4930

Comment 10 errata-xmlrpc 2020-11-04 19:30:38 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.4 for RHEL 6

Via RHSA-2020:4929 https://access.redhat.com/errata/RHSA-2020:4929

Comment 11 errata-xmlrpc 2020-11-04 19:36:59 UTC
This issue has been addressed in the following products:

  Red Hat Single Sign-On 7.4 for RHEL 8

Via RHSA-2020:4932 https://access.redhat.com/errata/RHSA-2020:4932

Comment 12 Product Security DevOps Team 2020-11-04 20:21:12 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-10776