CVE Vulnerabilities

CVE-2022-1996

Authorization Bypass Through User-Controlled Key

Published: Jun 08, 2022 | Modified: Nov 07, 2023
CVSS 3.x
9.1
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS 2.x
6.4 MEDIUM
AV:N/AC:L/Au:N/C:P/I:P/A:N
RedHat/V2
RedHat/V3
9.1 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Ubuntu
MEDIUM

Authorization Bypass Through User-Controlled Key in GitHub repository emicklei/go-restful prior to v3.8.0.

Weakness

The system’s authorization functionality does not prevent one user from gaining access to another user’s data or record by modifying the key value identifying the data.

Affected Software

Name Vendor Start Version End Version
Go-restful Go-restful_project * 2.16.0 (excluding)
Go-restful Go-restful_project 3.0.0 (including) 3.8.0 (excluding)
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-grafana-dashboard-rhel8:2.2.0-14 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-operator-bundle:2.2.1-8 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-reports-rhel8:1.1.1-9 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-rhel8:2.2.1-8 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/cryostat-rhel8-operator:2.2.1-11 *
Cryostat 2 on RHEL 8 RedHat cryostat-tech-preview/jfr-datasource-rhel8:2.2.0-14 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/client-kn-rhel8:1.3.1-4 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-controller-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-in-memory-channel-controller-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-kafka-broker-controller-rhel8:1.3.2-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-kafka-broker-dispatcher-rhel8:1.3.2-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-kafka-broker-post-install-rhel8:1.3.2-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-kafka-broker-webhook-rhel8:1.3.2-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-mtbroker-filter-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-mtbroker-ingress-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-mtchannel-broker-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-mtping-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-storage-version-migration-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-sugar-controller-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/eventing-webhook-rhel8:1.3.2-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/ingress-rhel8-operator:1.24.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/knative-rhel8-operator:1.24.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/kn-cli-artifacts-rhel8:1.3.1-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/kourier-control-rhel8:1.3.0-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/net-istio-controller-rhel8:1.3.0-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/net-istio-webhook-rhel8:1.3.0-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serverless-operator-bundle:1.24.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serverless-rhel8-operator:1.24.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-activator-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-autoscaler-hpa-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-autoscaler-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-controller-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-domain-mapping-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-domain-mapping-webhook-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-queue-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-storage-version-migration-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/serving-webhook-rhel8:1.3.0-3 *
Openshift Serveless 1.24 RedHat openshift-serverless-1/svls-must-gather-rhel8:1.24.0-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1-tech-preview/eventing-kafka-broker-controller-rhel8:1.3.2-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1-tech-preview/eventing-kafka-broker-dispatcher-rhel8:1.3.2-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1-tech-preview/eventing-kafka-broker-receiver-rhel8:1.3.2-2 *
Openshift Serveless 1.24 RedHat openshift-serverless-1-tech-preview/eventing-kafka-broker-webhook-rhel8:1.3.2-2 *
Openshift Serverless 1 on RHEL 8 RedHat openshift-serverless-clients-0:1.3.1-4.el8 *
Red Hat OpenShift GitOps 1.8 RedHat openshift-gitops-kam-0:1.8.3-6.el8 *
Red Hat OpenShift GitOps 1.9 RedHat openshift-gitops-kam-0:1.9.0-102.el8 *
RHEL-8-CNV-4.10 RedHat container-native-virtualization/virt-api:v4.10.5-3 *
RHEL-8-CNV-4.10 RedHat container-native-virtualization/virt-artifacts-server:v4.10.5-3 *
RHEL-8-CNV-4.10 RedHat container-native-virtualization/virt-controller:v4.10.5-3 *
RHEL-8-CNV-4.10 RedHat container-native-virtualization/virt-handler:v4.10.5-3 *
RHEL-8-CNV-4.10 RedHat container-native-virtualization/virt-launcher:v4.10.5-3 *
RHEL-8-CNV-4.10 RedHat container-native-virtualization/virt-operator:v4.10.5-3 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/cluster-network-addons-operator:v4.9.7-4 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/hostpath-provisioner-rhel8:v4.9.7-3 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/hostpath-provisioner-rhel8-operator:v4.9.7-4 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/hyperconverged-cluster-webhook-rhel8:v4.9.7-4 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/kubemacpool:v4.9.7-4 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/kubevirt-ssp-operator:v4.9.7-4 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/kubevirt-vmware:v4.9.7-2 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/libguestfs-tools:v4.9.7-5 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/node-maintenance-operator:v4.9.7-4 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/virt-cdi-cloner:v4.9.7-3 *
RHEL-8-CNV-4.9 RedHat container-native-virtualization/vm-import-virtv2v-rhel8:v4.9.7-4 *
Golang-github-emicklei-go-restful Ubuntu bionic *
Golang-github-emicklei-go-restful Ubuntu impish *
Golang-github-emicklei-go-restful Ubuntu kinetic *
Golang-github-emicklei-go-restful Ubuntu lunar *

Extended Description

Retrieval of a user record occurs in the system based on some key value that is under user control. The key would typically identify a user-related record stored in the system and would be used to lookup that record for presentation to the user. It is likely that an attacker would have to be an authenticated user in the system. However, the authorization process would not properly check the data access operation to ensure that the authenticated user performing the operation has sufficient entitlements to perform the requested data access, hence bypassing any other authorization checks present in the system. For example, attackers can look at places where user specific data is retrieved (e.g. search screens) and determine whether the key for the item being looked up is controllable externally. The key may be a hidden field in the HTML form field, might be passed as a URL parameter or as an unencrypted cookie variable, then in each of these cases it will be possible to tamper with the key value. One manifestation of this weakness is when a system uses sequential or otherwise easily-guessable session IDs that would allow one user to easily switch to another user’s session and read/modify their data.

Potential Mitigations

References