Skip to content

Admin sessions via SAML are unable to fully logout #7603

Open
@hawke114

Description

@hawke114

Describe the bug
Admin sessions via SAML are unable to fully logout. When logging out of a SAML session, the user can log back in without authentication from any browser by clicking the SSO button even after clearing browser caches and logging out of the IDP.

To Reproduce
Steps to reproduce the behavior:

  1. Login to PacketFence admin console from a SAML authentication source
  2. On 1st login, the user will get redirected to the IDP for authentication
  3. Attempt to logout with logout button.
  4. Click the SSO Sign-in button on the admin login page
  5. The browser will get redirected to the captive portal endpoint, then directly back to the admin interface with a login token. Clearing cookies or even trying a new browser will not trigger a re-authentication. I suspect the user session is tied to IP or mac address which would be very bad if true.
  6. The user sees a message login successful and the account they are now logged in with is the same as the original SAML user.
  7. No new user authentication events are shown in the admin api audit log.

Screenshots
image
image
Not sure if relevant, but session cookie seems to be valid for a year.

Expected behavior

  1. SAML Admin user logoff or clear browser sessions
  2. user clicks SSO login button
  3. User is directed to SAML IDP for authentication
  4. user is logged in to admin portal until manual logoff or session expiration

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Tested in Firefox 111.0, Chrome 111.0.5563.65 and Edge 111.0.1661.44

Additional Context
Packetfence Version
12.2.0
GIT Commit ID
cfc6a45106a4446c78c56af1d2c5882a27796c70

Even disabling SSO from System Configuration > Admin Login will not terminate sessions. When SSO is re-enabled clicking the SSO button will login without redirecting to the IDP for authentication.

Rebooting the PF server or restarting services has no effect.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions