Enhancement: Add OIDC Logout Redirect #5511
Closed
nagug
started this conversation in
Feature Requests & Suggestions
Replies: 2 comments 3 replies
-
Thank you for your detailed report and bringing this to my attention. However, I want to clarify that this is actually the expected behavior with OIDC (OpenID Connect) and not a vulnerability. What you're describing is standard single sign-on (SSO) functionality. Let me explain why:
However, you raise two valid points that we can consider improving:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Issue Description:
A potential security vulnerability is observed in the logout process when using LibreChat with Authentik as the authentication provider. The current logout flow does not properly terminate the user's Authentik session or giving an option to terminate the session, posing potential risks.
Expected Workflow:
User is given clear options to either log out of Authentik or return to the application, ensuring their session is fully terminated if they choose.
Current Workflow:
User initiates logout.
Potential Security Risks:
Session Persistence: The Authentik session remains active post-application logout, allowing potential unauthorized access if the user doesn't explicitly log out. (User might not be aware of this)
Public Computer Exposure: Users on public devices may close the browser, unaware their session persists, risking data security.
Unrestricted Access: Subsequent logins occur without credentials, bypassing essential security checks.
Impact:
This could lead to unauthorized access, especially in shared environments. The lack of explicit redirect to Authentik could be potentially dangerous.
Steps to Reproduce
I have given screenshots for expected redirection and current.
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
This is current redirection on logout from Librechat

This is Expected redirection on logout (Observed in other applications such as audiobookshelf, Freshnews etc.)
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions