Skip to content

Users can log out by killing the session token (unintentionally) #24911

Closed

Description

@davitol

Steps to reproduce

  1. Start owncloud session from several browser devices
  2. Go to the personal page
  3. Delete your own session

Expected behaviour

The users should not be able to delete their current sessions

Actual behaviour

The users can log out by killing the session token

Server configuration

Operating system:
Ubuntu 14.04

Web server:
Apache

Database:
MySQL

PHP version:
5.5.9

**ownCloud version:""9.1.0.5","versionstring":"9.1.0 beta 1","edition":"Enterprise"

Updated from an older ownCloud or fresh install:
Fresh

Are you using external storage, if yes which one: local/smb/sftp/...
No

Are you using encryption:
No

Logs


Client configuration

browser

Chrome

deletesessions

@ChristophWurst

Activity

  1. added this to the milestone on May 31, 2016
  2. ChristophWurst commented on May 31, 2016

    @ChristophWurst
    Contributor

    @davitol maybe one of the first sessions you killed was your own, active session. That would log you out, hence the error message.

  3. davitol commented on May 31, 2016

    @davitol
    ContributorAuthor

    Mmmm could be, but sometime it lets me to delete all the sessions (if i refresh the screen, then I am redirected to ownCloud log in page)

    screen shot 2016-05-31 at 11 01 28

  4. ChristophWurst commented on May 31, 2016

    @ChristophWurst
    Contributor

    The token validity is only checked once per five minutes. This means sometimes you're fast enough and the check happens afterwards, sometimes you are too slow and it happens in between your requests.

  5. ChristophWurst commented on May 31, 2016

    @ChristophWurst
    Contributor

    Hence the real issue here is that users can log themselves out (unintentionally) by killing the session token.

  6. davitol commented on May 31, 2016

    @davitol
    ContributorAuthor

    @ChristophWurst Let's rename the issue. Thanks for the info

  7. nickvergessen commented on May 31, 2016

    @nickvergessen
    Contributor

    @ChristophWurst maybe we should send back a 401 when killing the current session, on ajax requests that will trigger a reload to the login page iirc cc @PVince81

  8. changed the title [-]Cannot delete several session in a row[/-] [+]Users can log out by killing the session token (unintentionally)[/+] on May 31, 2016
  9. modified the milestones: , on Jun 30, 2016
  10. 2 remaining items

  11. modified the milestones: 9.1.2, 9.1.1 on Sep 19, 2016
  12. davitol commented on Sep 19, 2016

    @davitol
    ContributorAuthor

    Reproduced in "9.1.1.2","versionstring":"9.1.1 RC3","edition":"Enterprise"

    sessiondelete

  13. PVince81 commented on Sep 19, 2016

    @PVince81
    Contributor

    @davitol this was not backported apparently.

  14. modified the milestones: 9.1.3, 9.1.2 on Oct 20, 2016
  15. modified the milestones: , 9.1.3 on Nov 30, 2016
  16. modified the milestones: backlog, 10.0 on Jan 27, 2017
  17. davitol commented on Mar 16, 2017

    @davitol
    ContributorAuthor

    Already fixed in 10.0.0.1 alpha version, so let's close it

  18. lock commented on Aug 2, 2019

    @lock

    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.

  19. locked as resolved and limited conversation to collaborators on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions