cloudstack-mirror/plugins/user-authenticators
dahn f2df4d9754 saml: reject signed SAMLResponse when IdP has no signing certificate registered
When a SAML Response or EncryptedAssertion carries a ds:Signature element
but the IdP metadata contains no signing certificate, the previous code
silently skipped signature validation (the guard was
`idpMetadata.getSigningCertificate() != null && sig != null`).
An attacker could forge a SAMLResponse with an arbitrary bogus signature
against a cert-less IdP and obtain a valid session — a full
unauithenticated authentication bypass.

Fix: when a signature IS present we now require a signing certificate to
be registered.  If none is found we immediately reject the request with
an ACCOUNT_ERROR.  The same guard is applied to the EncryptedAssertion
signature block.
2026-08-18 18:42:52 +05:30
..
ldap ldap: improve config access 2026-08-18 18:42:52 +05:30
md5 Updating pom.xml version numbers for release 4.22.2.0-SNAPSHOT 2026-05-18 17:17:25 +05:30
oauth2 oauth2: improve google provider flow 2026-08-18 18:42:52 +05:30
pbkdf2 Updating pom.xml version numbers for release 4.22.2.0-SNAPSHOT 2026-05-18 17:17:25 +05:30
plain-text Updating pom.xml version numbers for release 4.22.2.0-SNAPSHOT 2026-05-18 17:17:25 +05:30
saml2 saml: reject signed SAMLResponse when IdP has no signing certificate registered 2026-08-18 18:42:52 +05:30
sha256salted Updating pom.xml version numbers for release 4.22.2.0-SNAPSHOT 2026-05-18 17:17:25 +05:30