The vulnerability exists because Admidio's SAML Identity Provider (IdP) implementation failed to validate the AssertionConsumerServiceURL provided in SAML AuthnRequests. This URL dictates where the SAML response, containing the user's identity and attributes, should be sent. The root cause is improper input validation (CWE-20), leading to an open redirect (CWE-601) vulnerability. An attacker could craft a SAML AuthnRequest with a legitimate Service Provider (SP) Entity ID but an AssertionConsumerServiceURL pointing to their own server. When a logged-in Admidio user is tricked into initiating the SSO flow with this malicious request, the Admidio IdP would generate a valid, signed SAML assertion and send it to the attacker's URL. The attacker could then use this assertion to impersonate the victim at the legitimate SP. The analysis of the patch commit 3c013a9ae9bc60b08f579349f1a79f657358b034 confirms this. The changes in src/SSO/Service/SAMLService.php introduce strict validation in both the main handleSSORequest function and the errorResponse function, ensuring that the AssertionConsumerServiceURL from the request is compared against the one registered in the SP client's configuration before being used. This effectively closes the open redirect and prevents the information disclosure and impersonation attack.