* Dominik <
domini...@gmail.com> [2022-05-20 12:17]:
> The others send unencrypted assertions by default anyway. To follow
> your argumentation we should rather ask the other 8 idP's to encrypt
> the assertions ;-)
FWIW, I currently manage the SAML Metadata for ~150 SAML entities
(half of which are IDPs and half SPs) and all of these support
encrypted SAML Reponses/Assertions.
I.e., we actually require our community members to support end-to-end
encryption.
> Taking your example with HTTPs into account: even the unencrypted
> assertions are encrpyted by HTTPS and are not transmitted in plain
> text over the net.
No, but (assuming SAML WebSSO as the profile) both TLS tunnels
(between the browser and the SAML IDP, and again between the browser
and the SAML SP) terminate at the subject's web browser, arguably the
most insecure link in the chain.
But malware at the computer used to log in isn't the only problem here
(as such malware would possibly also have access to the credentials
used to log in to the IDP and anything else) as any software flaw with
regards to web browser TLS or network-based MITM/etc attack or
botch/break-in/error in a CA your browser trusts would completely void
the only security you're left with, very likely without you even
noticing it.
Also and probably more practically relevant, end-to-end encrypting the
SAML/XML prevents whole classes of possible exploits that are simply
not possible when the XML is unreadable to anyone except the intended
recipient (i.e., the SAML SP owning the private key with which to
decrypt the SAML Assertion or Reponse): No entity references tricks, no
XML wrapping attacks.
> Do you have a solution?
I don't claim to sufficiently understand the reason for your specific
error message (or the code involved) to fix your problem. Maybe open
an issue for that in github where you can provide any details required
to get to the bottom of this.
I'm merely saying that disabling encryption is not the proper way to
fix interop issues between Shibboleth and SimpleSAMLphp, which have
been interoperating properly for 1.5 decades now, AFAIR.
-peter