CVE-2022-3841: SSRF
A Server-Side Request Forgery (SSRF) vulnerability was found in the console API endpoint from Red Hat Advanced Cluster Management for Kubernetes (RHACM). An attacker could take advantage of this as the console API endpoint is missing an authentication check, allowing unauthenticated users making requests.
Other sources
The /api/proxy/plugin/acm/console/multicloud/ansibletower endpoint can be accessed without authentication. The only checks performed are the presence of an openshift-session-token cookie regardless of its value and setting a csrf-token cookie with a dummy value.
This endpoint allows users to supply a URL and a token of an Ansible Tower server. Upon receiving this information, the hub performs a HTTPs requests to the given URL while setting the token as the Bearer value in the Authorization header. No checks are performed on the URL and it is therefore fully controlled by the attacker.
This leads to a Server Side Request Forgery (SSRF) attack, where an attacker can supply to the server, a whole or part of, a URL that will in turn be queried by the server. This is problematic since the server is considered to be in a privileged network position and can often reach exposed services that aren't readily available to clients due to network filtering. Leveraging such an attack vector, the attacker can have an impact on other services and potentially disclose information or have other nefarious effects on the system.
In the present case, the server fetches the URL provided by the user and returns the full response, including HTTP headers, back to the attacker.
— Red Hat
Affected Software
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID of this SSRF vulnerability?
The vulnerability ID is CVE-2022-3841.
What is the severity of CVE-2022-3841?
The severity of CVE-2022-3841 is high with a CVSS score of 7.8.
What software is affected by CVE-2022-3841?
Red Hat Advanced Cluster Management for Kubernetes (RHACM) version 2.0 is affected by CVE-2022-3841.
What is the impact of this vulnerability?
This vulnerability allows an attacker to perform Server-Side Request Forgery (SSRF) attacks through the console API endpoint of RHACM, potentially leading to unauthorized access or information disclosure.
Is there a fix available for CVE-2022-3841?
Yes, the fix for CVE-2022-3841 is available. Please refer to the official Red Hat security advisory for more information on how to apply the patch.