The vulnerability exists in the sync_provider_data endpoint, which is part of the SAMLProviderDataViewSet. This endpoint is used to synchronize SAML provider data from a metadata URL. The vulnerability is in the fetch_metadata_xml function, which is called by sync_provider_data. The fetch_metadata_xml function takes a URL as input and makes an HTTP request to that URL using requests.get() without any validation. An authenticated user with the Enterprise Admin role can set the metadata URL to an arbitrary value via the SAMLProviderConfigViewSet PATCH endpoint. By setting the metadata URL to a malicious URL and then calling the sync_provider_data endpoint, an attacker can trigger a Server-Side Request Forgery (SSRF) attack. This can be used to steal cloud credentials, scan internal networks, and access internal APIs.