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
{{ message }}
Repository navigation
[QA] Browser session is valid for newly created user of same name #904
Oooh, that is interesting and tricky since oidc is a stateless mechanism AFAIK and there is no central "session" we could invalidate.
This requires some research.
David Christofas commented: So after a bit of research I found the following options:
We could include the accounts uuid in the jwts (only possible if the access token is a jwt) and on every request check that the affected user's id matches.
The idp needs to hold a blacklist with invalidated access tokens. This requires the idp to synchronize the blacklist if it is setup in a distributed manner. Also when an admin deletes a user the admin has no access to the users access token and therefore can not tell the idp which token to invalidate.
Both options are not really satisfying. I think this issue requires some more brainstorming together with the team.
Jörn Friedrich Dreyer commented: optimal solution: idp sends the ownclouduuid property that we can rely on.
if the idp cannot send arbitrary claims (eg konnectd): when creating accounts we need to store the sub+iss with the account (our accounts have an identities property that can be used for that). then we can double check if the sub+iss still matches on logins.
Ilja Neumann commented: Contacted upstream with the proposal of [~jfd]. Meanwhile we could quickly implement this feature in a fork and use that until the change has landed it upstream. We done this before.
changed the title [-][QA] browser session is valid for newly created user of same name[/-][+][QA] Browser session is valid for newly created user of same name[/+]on Jan 13, 2021
the user cannot perform critical operations like change password
the user has no access to any space
-> the old user has at most 5 mins to view personal files of the new user and these files first need to be uploaded
-> this is a very unlikely attack vector and even if the information leakage is pretty low
BUT: this scenario has to be retested when the idp is changed
Activity
jnweiger commentedon Nov 20, 2020
@C0rby maybe exploitable like this:
... don't know what els can be done with that :-)
C0rby commentedon Nov 20, 2020
Oooh, that is interesting and tricky since oidc is a stateless mechanism AFAIK and there is no central "session" we could invalidate.
This requires some research.
exalate-issue-sync commentedon Dec 8, 2020
David Christofas commented: So after a bit of research I found the following options:
Both options are not really satisfying. I think this issue requires some more brainstorming together with the team.
exalate-issue-sync commentedon Dec 10, 2020
Jörn Friedrich Dreyer commented: optimal solution: idp sends the
ownclouduuidproperty that we can rely on.if the idp cannot send arbitrary claims (eg konnectd): when creating accounts we need to store the sub+iss with the account (our accounts have an identities property that can be used for that). then we can double check if the sub+iss still matches on logins.
exalate-issue-sync commentedon Dec 11, 2020
Ilja Neumann commented: Contacted upstream with the proposal of [~jfd]. Meanwhile we could quickly implement this feature in a fork and use that until the change has landed it upstream. We done this before.
[-][QA] browser session is valid for newly created user of same name[/-][+][QA] Browser session is valid for newly created user of same name[/+]individual-it commentedon Jan 26, 2021
55 remaining items
rhafer commentedon Jan 10, 2024
To really fix this, I think we need to address libregraph/lico#98 first. After that we can bring back the original fix for the issue: 52951b4
dragonchaser commentedon Jan 15, 2024
@micbar does it make sense to tackle this, since we are planning to move to another idp?
DeepDiver1975 commentedon Feb 8, 2024
As just discussed and agreed on:
-> the old user has at most 5 mins to view personal files of the new user and these files first need to be uploaded
-> this is a very unlikely attack vector and even if the information leakage is pretty low
BUT: this scenario has to be retested when the idp is changed
kobergj commentedon Feb 11, 2025
outdated - closing
Revert "idp/proxy: Match users by ID instead of name by default"