You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
While testing password changing on the client,
I noticed that changing it does not invalidate the
users sessions. I am writing to this list because
this behavior constitutes a security issue,
depending on the users assumptions.
I would presume that if a user changes his password,
he might do so because:
- he does so routinely (e.g. enforced password policy
in a company)
or
- his old password got compromised
In the latter, he definitely wants to expire his sessions
(Web and WebDAV) as well.
In conclusion, I suggest we either introduce a patch to
invalidate the users session on password change, or
add an additional action "invalidate session" in the
user management UI (note that this would mean the
functionality would not accessible from alternative user
management interfaces, such as LDAP/AD).
This seems to be because the session is still valid.
So, how do we invalidate the session without querying the LDAP/AD database again?
I don't think you can.
So we should invalidate the session, and then require us to hit the LDAP/AD again.
That subsequently fails on sync.
right, so now I understand the feature request - we need a TTL for session information.
@bboule I need to understand if this makes the top ten and the urgency there, and then @cmonteroluque can discuss delivery. No later than 9.1 in my head at this time, but not confirmed.
Do we really have to invalidate the session or is it enough to invalidate the data in the session?
from my understanding we need to invalidate the session - which can be done by marking the session as invalid and do a forced logout.
but the interesting point here is: we have no understanding when the password is changed on the ldap server - we basically have no other choice then let the session live until it expires.
we might need to readjust the session renewal mechanism - afaik a session will continue to live for ever (as in no password reentry by the user) if the session is reused often enough
Should this be an OCC command, such as occ: kill user_1 - this requires the admin to run an OCC command with the username specifically
OR
Should this be automatic in some way, so that the session (or equivalent) is killed within 60 min (or so) of the LDAP deletion?
For my specific request the user has no more access to the LDAP, but its still logged in the sync-client and continue downloading and uploading files, the user can't log over the webUI because of the credentials.
Should this be automatic in some way, so that the session (or equivalent) is killed within 60 min (or so) of the LDAP deletion?
@MorrisJobke yes, that is covered. The session token contains the encrypted login password which is re-checked about once per 5 minutes and the user is logged out if the password was changed.
I did not test with LDAP, but the implementation should work with any user backend the user manager queries.
Activity
MorrisJobke commentedon Oct 2, 2015
felixboehm commentedon Nov 11, 2015
@MTRichards Please provide a milestone here.
MTRichards commentedon Nov 11, 2015
Is there a ticket?
MTRichards commentedon Nov 11, 2015
@LukasReschke Are we planning on doing anything here, or is the urgency such that it is not required soon?
MorrisJobke commentedon Nov 12, 2015
owncloud/client#3912 ;) (always check the last backlink at around the time of adding the label ;))
MorrisJobke commentedon Nov 17, 2015
00003501
MTRichards commentedon Nov 17, 2015
This seems to be because the session is still valid.
So, how do we invalidate the session without querying the LDAP/AD database again?
I don't think you can.
So we should invalidate the session, and then require us to hit the LDAP/AD again.
That subsequently fails on sync.
@MorrisJobke
Isn't there a session keep alive setting somewhere? (if not, this would be good).
Is there an event or something when a user's external (LDAP/AD) password is changed? Do we even know when this happens (I think not)?
Alternatively, a manual "invalidate session" option might also work, but as an admin this is undesirable behavior.
MorrisJobke commentedon Nov 17, 2015
For LDAP there is a TTL
cc @blizzz
It's not about the manual way, but about being able to do so (also from a developers point of view).
blizzz commentedon Nov 17, 2015
Only used for caching, nothing to do with sessions.
No, we don't.
MTRichards commentedon Nov 17, 2015
right, so now I understand the feature request - we need a TTL for session information.
@bboule I need to understand if this makes the top ten and the urgency there, and then @cmonteroluque can discuss delivery. No later than 9.1 in my head at this time, but not confirmed.
karlitschek commentedon Nov 17, 2015
Do we really have to invalidate the session or is it enough to invalidate the data in the session?
DeepDiver1975 commentedon Nov 17, 2015
from my understanding we need to invalidate the session - which can be done by marking the session as invalid and do a forced logout.
but the interesting point here is: we have no understanding when the password is changed on the ldap server - we basically have no other choice then let the session live until it expires.
we might need to readjust the session renewal mechanism - afaik a session will continue to live for ever (as in no password reentry by the user) if the session is reused often enough
12 remaining items
MTRichards commentedon Mar 18, 2016
Folks, I need a question answered.
Should this be an OCC command, such as occ: kill user_1 - this requires the admin to run an OCC command with the username specifically
OR
Should this be automatic in some way, so that the session (or equivalent) is killed within 60 min (or so) of the LDAP deletion?
It has an impact on the design and architecture.
MorrisJobke commentedon Mar 21, 2016
I guess both, but at most the second one. Also something like killing your own other sessions would be nice. See how github handles it: https://github.com/settings/security
cdamken commentedon Mar 29, 2016
For my specific request the user has no more access to the LDAP, but its still logged in the sync-client and continue downloading and uploading files, the user can't log over the webUI because of the credentials.
That would be enough for my customer.
MorrisJobke commentedon Mar 29, 2016
This nevertheless requires the ownCloud knows that user <-> session relationship which is currently not possible.
MTRichards commentedon Apr 1, 2016
Work package:
a) for delete users (<-- this is the critical use case)
b) for change password
@MorrisJobke
MTRichards commentedon Apr 1, 2016
Estimate: 2 weeks.
add a check to the session for killed sessions
MorrisJobke commentedon May 17, 2016
@ChristophWurst Is this already covered by your pluggable auth
ChristophWurst commentedon May 17, 2016
@MorrisJobke yes, that is covered. The session token contains the encrypted login password which is re-checked about once per 5 minutes and the user is logged out if the password was changed.
I did not test with LDAP, but the implementation should work with any user backend the user manager queries.
lock commentedon Aug 4, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.