Bug 53638 - [4.4] UMC SSO Logout: UMC/Portal session is not invalidated on SingleLogout
[4.4] UMC SSO Logout: UMC/Portal session is not invalidated on SingleLogout
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 4.4-8-errata
Assigned To: Florian Best
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-09 12:29 CEST by Florian Best
Modified: 2021-08-25 17:46 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-08-09 12:29:14 CEST
Backport to UCS 4.4:

+++ This bug was initially created as a clone of Bug #53436 +++

If UMC/Portal is part of a SingleLogout request chain from a browser, the user is not correctly logged out of the Portal.

Scenario:
4.4-8 errata983, nextcloud app

Log into Portal via SSO, click nextcloud tile on portal, log into nextcloud via SSO. Now Click logout button in nextcloud. The SingleSignOn session at the UCS IdP is ended, user is logged out of nextcloud

Part of the SingleLogout process in SAML is a redirect to all service providers the user currently has a session for. The user is redirected to the portal logout endpoint and back to the IdP, but when refreshing the portal, the user still has a valid session with the default UMC cookies

Expected result: UMC session and session cookies are removed when the UMC SAML logout endpoint is visited as part of a SingleLogout process.

In the attached SAML tracer log (ff addon), one can see that upon returning from /univention/saml/slo to the IdP, the SAML message contains

<samlp:StatusMessage>Wrong user</samlp:StatusMessage>
Comment 1 Florian Best univentionstaff 2021-08-09 12:31:02 CEST
    Bug #53638: fix third party SP initiated SAML Logout
    
    A SAML LogoutRequest must already remove the local session. The SAML
    LogoutResponse can only be used to finally redirect the user to some
    logout page.


univention-management-console.yaml
d239e234dc40 | Bug #53638: fix third party SP initiated SAML Logout

univention-management-console (11.0.6-15)
d239e234dc40 | Bug #53638: fix third party SP initiated SAML Logout
Comment 2 Dirk Wiesenthal univentionstaff 2021-08-11 13:20:48 CEST
OK: Nextcloud logout nullifies portal login status
OK: YAML
OK: Codechange