Giter Site home page Giter Site logo

Comments (4)

solracsf avatar solracsf commented on June 26, 2024

Could you elaborate why?

from server.

Knkkyl avatar Knkkyl commented on June 26, 2024

Assuming an attacker gained access to an account, the simplest solution would be to change the password of said account. But what if the user could not log in to change the password because the session was already active somewhere else? The user is now locked out completely and the hacker has unlimited access.

The biggest risk is that session tokens can be stolen. In this case, multiple devices will use the same session, so to your backend, that's still just one concurrent login.

from server.

nickvergessen avatar nickvergessen commented on June 26, 2024

When someone got compromised the way to go is to drop all auth tokens for that user.

This can be done via the command line:

sudo -u www-data php occ user:auth-tokens:list <user>
sudo -u www-data php occ user:auth-tokens:delete <user>

Or when logging in as the user navigating to /index.php/settings/user/security and revoking all the tokens:
grafik
To revoke the "existing" session, just hit the logout button.

On that note, changing the password and email requires password confirmation, so a stolen session is not enough.

Additionally you should think about setting up 2FA. But binding a session to something else is just doomed to create problems along the way.


Having said all that, if you are scared on that level, you should never be running 27.1.2 at this point (but you seem to as per #44169 ). The current version is 27.1.7
You should also consider updating to 28.0.3

from server.

solracsf avatar solracsf commented on June 26, 2024

@nickvergessen are those commands documented anywhere? 🤔

# occ user:auth-tokens:list <username>

  There are no commands defined in the "user:auth-tokens" namespace.

  Did you mean this?
      user

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.