Bug 1937171 (CVE-2021-20278)

Summary: CVE-2021-20278 kiali: authentication bypass when using the OpenID login strategy
Product: [Other] Security Response Reporter: Mark Cooper <mcooper>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jshaughn, jwendell, kconner, rcernich, twalsh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kiali 1.31.0 Doc Type: If docs needed, set a value
Doc Text:
An authentication bypass vulnerability was found in Kiali when the authentication strategy `OpenID` is used. When RBAC is enabled, Kiali assumes that some of the token validation is handled by the underlying cluster. When OpenID `implicit flow` is used with RBAC turned off, this token validation doesn't occur, and this allows a malicious user to bypass the authentication.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-10 09:05:45 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: 1937165    

Description Mark Cooper 2021-03-10 03:24:03 UTC
A vulnerability was found in kiali v1.30.0 when the authentication strategy `OpenID` is used. When RBAC is enabled, Kiali assumes that some of the token validation is handled by the underlying cluster. Hence, when OpenID `implicit flow` is used with RBAC turned off, this token validation doesn't occur and may allow a malicious user to bypass the authentication.

Comment 1 Mark Cooper 2021-03-10 03:24:06 UTC
External References:

https://kiali.io/news/security-bulletins/kiali-security-002/

Comment 5 Mark Cooper 2021-03-11 00:36:29 UTC
Acknowledgments:

Name: the Kiali Security Group

Comment 6 RaTasha Tillery-Smith 2021-03-11 13:28:04 UTC
Statement:

OpenShift ServiceMesh (OSSM) Kiali is configured to delegate authorization to the OpenShift's RBAC user rights and the OpenID authentication strategy is not supported, therefore it is marked `not affected`.