CVE-2025-24894
CriticalSummary
SPID.AspNetCore.Authentication to zdalny system uwierzytelniania dla SPID oparty na standardzie SAML2. Problematyczna logika walidacji podpisu może pozwolić atakującemu na wstrzyknięcie elementu podpisanego jako pierwszy, co skutkuje brakiem weryfikacji pozostałych podpisów.
Risk Assessment
Organizacja może być narażona na ataki polegające na podszywaniu się pod innych użytkowników, co może prowadzić do nieautoryzowanego dostępu do zasobów. Brak odpowiedniej walidacji podpisów stwarza poważne zagrożenie dla integralności systemu uwierzytelniania.
Recommendation
Zaleca się przegląd i poprawę logiki walidacji podpisów w implementacji SAML, aby zapewnić, że wszystkie podpisy są weryfikowane zgodnie z wymaganiami bezpieczeństwa. Należy również rozważyć dodatkowe środki zabezpieczające, takie jak monitorowanie i audyt logów uwierzytelniania.
Original NVD description (English source)
SPID.AspNetCore.Authentication is an AspNetCore Remote Authenticator for SPID. Authentication using Spid and CIE is based on the SAML2 standard which provides two entities: Identity Provider (IDP): the system that authenticates users and provides identity information (SAML affirmation) to the Service Provider, in essence, is responsible for the management of the credentials and identity of users; Service Provider (SP): the system that provides a service to the user and relies on the Identity Provider to authenticate the user, receives SAML assertions from the IdP to grant access to resources. The validation logic of the signature is central as it ensures that you cannot create a SAML response with arbitrary assertions and then impersonate other users. There is no guarantee that the first signature refers to the root object, it follows that if an attacker injects an item signed as the first element, all other signatures will not be verified. The only requirement is to have an XML elemen

