Skip to content

[QA] Browser session is valid for newly created user of same name #904

Description

@jnweiger

Setup via docker-compose-eos-test.yml from branch fix-yml-for-rc5 on localhost
From the WEB UI:

  • moss creates user testy
  • in a different browser session, testy logs in, and creates some folders or files.
  • moss deletes user testy
  • the browser session of testy no longer works, error messages appear.
  • moss creates a new testy user
  • the browser session of the original testy works again, the new contents is seen.

This is a corner case, but may lead to access to a wrong account's data.

Expected behaviour: sessions remain invalidated forever, once the user is deleted.

Activity

  1. jnweiger commented on Nov 20, 2020

    @jnweiger
    ContributorAuthor

    @C0rby maybe exploitable like this:

    • assume an intrudor got control of a user account
    • admin deletes and recreates the user account to kick out the intrudor
    • intrudor changes the accounts password before the real user can access.
      ... don't know what els can be done with that :-)
  2. C0rby commented on Nov 20, 2020

    @C0rby
    Contributor

    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.

  3. exalate-issue-sync commented on Dec 8, 2020

    @exalate-issue-sync

    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.

  4. exalate-issue-sync commented on Dec 10, 2020

    @exalate-issue-sync

    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.

  5. exalate-issue-sync commented on Dec 11, 2020

    @exalate-issue-sync

    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.

  6. 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
  7. added
    Category:Research
    Interaction:Needs-help
    on Jan 13, 2021
  8. individual-it commented on Jan 26, 2021

    @individual-it
    Member
    • ToDo QA-team: think about if we can test this kind of scenario and if yes add tests
  9. 55 remaining items

  10. rhafer commented on Jan 10, 2024

    @rhafer
    Contributor

    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

  11. dragonchaser commented on Jan 15, 2024

    @dragonchaser
    Contributor

    @micbar does it make sense to tackle this, since we are planning to move to another idp?

  12. added this to the Release 5.0.0 milestone on Jan 22, 2024
  13. self-assigned this
    on Feb 8, 2024
  14. DeepDiver1975 commented on Feb 8, 2024

    @DeepDiver1975
    Contributor

    As just discussed and agreed on:

    • the access token has a life time of 5 minutes
    • 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

  15. added
    Priority:p3-medium
    and removed
    Priority:p2-high
    on Feb 8, 2024
  16. moved this from Prio 2 to Prio 3 or less in Infinite Scale Team Boardon Feb 8, 2024
  17. removed this from the Release 5.0.0 milestone on Feb 8, 2024
  18. removed their assignment
    on Apr 2, 2024
  19. kobergj commented on Feb 11, 2025

    @kobergj
    Contributor

    outdated - closing

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category:ResearchInteraction:Needs-helpPriority:p3-mediumType:Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions