CVE-2024-31223: Fides Information Disclosure Vulnerability in Privacy Center of SERVER_SIDE_FIDES_API_URL
SERVERSIDEFIDESAPIURL is a server-side configuration environment variable used by the Fides Privacy Center to communicate with the Fides webserver backend. The value of this variable is a URL which typically includes a private IP address, private domain name, and/or port.
This vulnerability allows an unauthenticated attacker to make a HTTP GET request from the Privacy Center that discloses the value of this server-side URL.
Impact
Disclosure of server-side configuration giving an attacker information on server-side ports, private IP addresses, and/or private domain names.
Patches The vulnerability has been patched in Fides version 2.39.2. Users are advised to upgrade to this version or later to secure their systems against this threat.
Workarounds There are no workarounds.
Proof of Concept
1. Set the value of the environment variable FIDESPRIVACYCENTERSERVERSIDEFIDESAPIURL of your Fides Privacy Center container before start-up to a private value such as https://some.private.domain.name/api/v1 and start the Privacy Center application.
2. Once the application is up, perform a HTTP GET request of the Privacy Center's main page e.g. https://privacy.example.com . The value of SERVERSIDEFIDESAPIURL is returned in the response's body.
~ ❯ curl -s https://privacy.example.com/ | \ grep 'NEXTDATA' | \ sed 's/.<script id="NEXTDATA" type="application\/json">//;s/<\/script>.//' | \ jq '.props.serverEnvironment.settings.SERVERSIDEFIDESAPIURL' "https://some.private.domain.name/api/v1"
Other sources
Fides is an open-source privacy engineering platform, and SERVERSIDEFIDESAPIURL is a server-side configuration environment variable used by the Fides Privacy Center to communicate with the Fides webserver backend. The value of this variable is a URL which typically includes a private IP address, private domain name, and/or port. A vulnerability present starting in version 2.19.0 and prior to version 2.39.2rc0 allows an unauthenticated attacker to make a HTTP GET request from the Privacy Center that discloses the value of this server-side URL. This could result in disclosure of server-side configuration giving an attacker information on server-side ports, private IP addresses, and/or private domain names. The vulnerability has been patched in Fides version 2.39.2rc0. No known workarounds are available.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-31223?
CVE-2024-31223 is classified as a medium-severity vulnerability due to improper handling of the SERVER_SIDE_FIDES_API_URL.
How do I fix CVE-2024-31223?
To fix CVE-2024-31223, update the ethyca-fides package to version 2.39.2 or later.
What are the potential impacts of CVE-2024-31223?
The potential impacts of CVE-2024-31223 include unauthorized access to backend services due to exposed configuration variables.
Which versions of ethyca-fides are affected by CVE-2024-31223?
Ethyca-fides versions between 2.19.0 and 2.39.2 are affected by CVE-2024-31223.
Is CVE-2024-31223 related to server configuration?
Yes, CVE-2024-31223 is related to server-side configuration of the SERVER_SIDE_FIDES_API_URL environment variable.