latchset / mod_auth_mellon

An Apache module with a simple SAML 2.0 service provider
Other
114 stars 49 forks source link

Internal Server Error when IdP-Initiated Single Logout #140

Open oss-aimoto opened 7 months ago

oss-aimoto commented 7 months ago

Occurred version: 0.19.0

  1. Access to mod_auth_mellon, login to the IdP, mod_auth_mellon receives a SAML assertion of "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" and creates a session.
  2. Close Browser
  3. Access to mod_auth_mellon, Login with the same user ID in IdP, mod_auth_mellon creates a new session(At this point, two sessions exist with the same NameID)
  4. IdP-Initiated Single Logout. -> Internal Server Error

(The SAML Assertion and Single Logout Request issued by the IdP contains the SessionIndex.)

mod_auth_mellon performs a single logout without reference to SessionIndex. However, lasso verify the SessionIndex, resulting in an error.

I think that mod_auth_mellon must conform to the SAML2 core specification