core icon indicating copy to clipboard operation
core copied to clipboard

[TokenLogin] Tokens remains visible on personal page in case of Admin changes user´s password

Open mcastroSG opened this issue 10 years ago • 9 comments

Steps to reproduce

  1. Login as user A and generate a couple of tokens
  2. Log out and Login again but this time as Admin user
  3. Change user A password as admin
  4. Log out and login again as User A with new password
  5. Navigate to personal page and refresh 10 minutes after to be sure that tokens have been validated again by background process.

Expected behaviour

Tokens disappear from Personal page due to password changed

Actual behaviour

Token remains at personal page but they are useless.

Server configuration

Operating system: Ubuntu 14.04.1 LTS Web server: Apache2 Database: Server version: 5.5.46-0ubuntu0.14.04.2 (Ubuntu) PHP version: PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46 ownCloud version: (see ownCloud admin page) ownCloud 9.1.0 beta 2 (git)

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Chrome 51 Operating system: OSX El capitán 10.11.5

mcastroSG avatar Jun 23 '16 10:06 mcastroSG

@ChristophWurst

PVince81 avatar Jun 23 '16 16:06 PVince81

Navigate to personal page and refresh 10 minutes after to be sure that tokens have been validated again by background process.

That's not how we re-validate tokens. They are validated only if used, as the password can only be decrypted if one knows the device password (it is hashed when stored in the db).

ChristophWurst avatar Jun 24 '16 08:06 ChristophWurst

One possible solution would be to delete all tokens immediately if a user's password is changed.

ChristophWurst avatar Jun 24 '16 09:06 ChristophWurst

@ChristophWurst so current behaviour should be for active connections through token , every 5 minutes are checked with current password to detect invalid tokens. So in case we have changed password (does not matter as admin or user), just tokens associated to active sessions will be invalidated ¿?

mcastroSG avatar Jul 01 '16 07:07 mcastroSG

yes. They get (in)validated when used

ChristophWurst avatar Jul 01 '16 19:07 ChristophWurst

are the tokens staying forever or do they disappear after 10 minutes anyway ?

PVince81 avatar Apr 06 '17 17:04 PVince81

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.

ownclouders avatar Dec 21 '17 01:12 ownclouders

please reopen if still happening on 10.0.4

PVince81 avatar Dec 21 '17 10:12 PVince81

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.

lock[bot] avatar Jul 31 '19 11:07 lock[bot]