Bug 1819011 (CVE-2020-10706) - CVE-2020-10706 openshift/openshift-apiserver: oauth tokens not encrypted when enabling encryption of data at rest
Summary: CVE-2020-10706 openshift/openshift-apiserver: oauth tokens not encrypted when...
Keywords:
Status: NEW
Alias: CVE-2020-10706
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 1819489 1819490
Blocks: 1818018
TreeView+ depends on / blocked
 
Reported: 2020-03-30 23:38 UTC by Jason Shepherd
Modified: 2024-06-01 22:09 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in OpenShift Container Platform where OAuth tokens are not encrypted when the encryption of data at rest is enabled. This flaw allows an attacker with access to a backup to obtain OAuth tokens and then use them to log into the cluster as any user who logged into the cluster via the WebUI or via the command line in the last 24 hours. Once the backup is older than 24 hours the OAuth tokens are no longer valid.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Jason Shepherd 2020-03-30 23:38:35 UTC
Oauth tokens are not encrypted when encryption of data at rest is enabled. An attacker with access to a backup could obtain oauth tokens and use them to log into the cluster as any user who had logged into the cluster via the webui.

Comment 1 Jason Shepherd 2020-03-30 23:38:38 UTC
Acknowledgments:

Name: Stefan Schimanski (Red Hat)

Comment 4 Jason Shepherd 2020-04-01 00:49:46 UTC
Mitigation:

If you have made a vulnerable backup public you can revoke leaked OAuth tokens by deleting them with the OpenShift API.

Comment 6 Stefan Schimanski 2020-04-06 15:31:24 UTC
To be more precise, this affects OAuthAccessToken and OAuthAuthorizeToken in the auth.openshift.io API group.

Comment 8 Jason Shepherd 2020-04-08 06:55:41 UTC
Statement:

This issue only affects OpenShift Container Platform when the 'encryption at rest' feature enabled, see https://access.redhat.com/documentation/en-us/openshift_container_platform/4.3/html/authentication/encrypting-etcd. When backing up the encrypted data the keys should be stored separately to the data, making backups the most likely target of this attack.

Comment 17 Dan Clark 2020-12-01 17:39:07 UTC
What is the target release to fix this vulnerability?

Comment 18 Dan Clark 2020-12-01 17:45:43 UTC
If the entire backup disk is encrypted with something like AWS KMS that should cover this problem right? In that the entire backup would be encrypted and unusable due to KMS if it were leaked somewhere.

Comment 19 Jason Shepherd 2020-12-02 01:50:18 UTC
Indeed, encrypting the entire backup is a good mitigation for this vulnerability. This has been fixed in the OCP 4.6 GA release. I'll update the metadata so the CVE page correctly links to that Errata.


Note You need to log in before you can comment on or make changes to this bug.