CVE-2022-3100: Medium severity Openstack barbican vulnerability
A flaw was found in the openstack-barbican component. This issue allows an access policy bypass via a query string when accessing the API.
Other sources
Barbican is including the contents of the request query string in the target data that is used by oslo.policy to enforce policy.
Since oslo.policy uses this data to do string interpolation into the policy rules before enforcing the policy, it gives a malicious user the opportunity to craft query strings to manipulate the policy in arbitrary ways.
For example, a malicious user with a Keystone account is able to decrypt any secret as long as they know the secret's ID by using a specifically crafted query string:
GET /v1/secrets/{secret-id}/payload?target.secret.read=read
Using this query string, the malicious user is able to fool Barbican into thinking that the user is in the ACL for the secret, which allows for secret decryption. Since the query string is applied to the target data after the data is fetched from the database, the user-provided query string overrides any values stored in the DB. In this case, overriding "target.secret.read" to "read", which should only be set when a user is added to the ACL.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/barbicanto a version that resolves this vulnerability.Fixed in 1:15.0.1-2Fixed in 1:20.0.0-3Fixed in 1:23.0.0-4 - Upgrade
Upgrade
redhat/openstack-barbican-12.0.1to a version that resolves this vulnerability.Fixed in 0.20220614210405 - Upgrade
Upgrade
debian/barbicanto a version that resolves this vulnerability.Fixed in 1:15.0.0~rc3-1
Event History
Frequently Asked Questions
What is CVE-2022-3100?
CVE-2022-3100 is a vulnerability found in the openstack-barbican component that allows an access policy bypass via a query string when accessing the API.
What is the severity of CVE-2022-3100?
CVE-2022-3100 has a severity rating of 5.9, which is considered medium.
Which software is affected by CVE-2022-3100?
The OpenStack Barbican component and various versions of Redhat Openstack, Redhat Openstack for IBM Power, and Redhat Openstack Platform are affected by CVE-2022-3100.
How can I fix CVE-2022-3100?
To fix CVE-2022-3100, it is recommended to apply the necessary patches or updates provided by the vendor.
Where can I find more information about CVE-2022-3100?
More information about CVE-2022-3100 can be found at the following reference: https://access.redhat.com/security/cve/CVE-2022-3100