Skip to content

Log in: Automatic log in rejected #854

Closed

Description

@jancborchardt

Sometimes when going to my ownCloud I get this notice:
»Automatic logon rejected!
If you did not change your password recently, your account may be compromised!
Please change your password to secure your account again.«

@LukasReschke what is the cause of this notice appearing? It sounds really weird and makes ownCloud seem not secure.

Activity

  1. LukasReschke commented on Dec 16, 2012

    @LukasReschke
    Contributor

    This warning appears if a "remember me" cookie isn't valid (anymore), this usually happens if a user change his password as this will invalidate all tokens.
    (It will also trigger a log entry that a user tried to login with an invalid cookie, as it could be a potential attacker OC_Log::write('core', 'Authentication cookie rejected for user '.$_COOKIE['oc_username'], OC_Log::WARN);)

    I agree in the point that this warning sounds too aggressive, we should probably change it:

    • To an other color than red... ;-)
    • The text to something like "Login cookie not found" - "Sorry, your login cookie seems to be invalid, please login again."

    /cc @karlitschek

  2. karlitschek commented on Dec 16, 2012

    @karlitschek
    Contributor

    Sounds reasonable. @jancborchardt What do you think?

  3. karlitschek commented on Dec 18, 2012

    @karlitschek
    Contributor

    @jancborchardt What do you think?

  4. jancborchardt commented on Dec 18, 2012

    @jancborchardt
    ContributorAuthor

    I’d say just not have a »warning« there at all because the technobabble won’t be read, let alone understood by most people anyway. It just makes it seem like ownCloud is unsafe.

    On a related note, seeing the log in screen or needing to authenticate again is super annoying and it should be minimized as much as possible.

  5. karlitschek commented on Dec 19, 2012

    @karlitschek
    Contributor

    So @LukasReschke @jancborchardt We have to conflicting suggestions from you both. What do we do? ;-)

  6. jancborchardt commented on Dec 20, 2012

    @jancborchardt
    ContributorAuthor

    @karlitschek it’s not yet conflicting because @LukasReschke didn’t make a statement to my suggestion yet. ;)

    The question is if you think it’s better to show a warning or notice at all. I’d say we shouldn’t, because the exact nature of why you’re seeing the login screen again isn’t super interesting. Like with Gmail, sometimes I need to put in my password again and I just assume it’s because of »security reasons«.

  7. LukasReschke commented on Dec 20, 2012

    @LukasReschke
    Contributor

    Ok, @jancborchardt convinced me.

    Let's remove the warning for the user, but the warning in the log should stay there nevertheless for admins.

    \cc @karlitschek

  8. jancborchardt commented on Dec 20, 2012

    @jancborchardt
    ContributorAuthor

    Ok. @karlitschek do you also think that’s a good solution? If so, can you update your pull request #917?

  9. karlitschek commented on Dec 20, 2012

    @karlitschek
    Contributor

    yep. Will do this later

  10. karlitschek commented on Dec 20, 2012

    @karlitschek
    Contributor
  11. RandolfCarter commented on Apr 14, 2013

    @RandolfCarter
    Contributor

    This warning appears if a "remember me" cookie isn't valid (anymore), this usually happens if a user change his password as this will invalidate all tokens.

    What was the exact outcome of this issue?
    I see the warning frequently after upgrading to 5.0.4, at the moment it seems to appear every time I start the browser on my desktop machine after having restarted my PC (I updated to 5.0.4 two days ago, haven't changed my password since, but have seen the warning twice). Using Firefox 20.0.

    What other circumstances apart from changing the password will make this warninig appear? Is logging in from more than one machine / network maybe causing that problem?
    Maybe this is related to #917 (comment)?

  12. jancborchardt commented on Apr 14, 2013

    @jancborchardt
    ContributorAuthor

    @LukasReschke you closed the issue – I assumed you removed the warning (and also fixed the log in screen being shown so often). ;)

  13. 32 remaining items

  14. jancborchardt commented on Sep 22, 2013

    @jancborchardt
    ContributorAuthor

    This still happens, even with stable5. Come on folks, this is really a bit ridiculous. It’s a »security feature« which tries to prevent some theoretic attack and results in people being locked out from their ownCloud unless they know they need to remove their cookies – and how to do that.

    cc @karlitschek @DeepDiver1975 @butonic @bantu @ringmaster we need a solution here.

  15. MorrisJobke commented on Sep 22, 2013

    @MorrisJobke
    Contributor

    My 2 cents: I just have to relogin (no need for cookie deletion).

  16. bantu commented on Sep 22, 2013

    @bantu

    @jancborchardt I agree. I often experience this during development. It's very annoying.

  17. rhamietron commented on Oct 23, 2013

    @rhamietron

    This still exists with the stable ownCloud 5.
    I was locked out of the cloud even despite clearing the cookies and deleting browsing history from Chrome.
    My only alternative was to use another browser, IE in this case.

  18. friscoMad commented on Oct 28, 2013

    @friscoMad
    Contributor

    @bantu @jancborchardt can you help with any extra info about your setups?
    I can only think of 2 issues with the current system, connection problems (cell phones for example) where the login request is done a new token generated but the response is not received so the browser and the server are out of sync in token regards.
    The second idea would be that the unique token could not be that unique and two different browsers could get the same one so after one if those are used the other is out of sync (in this case if you have openssl extension or unix machine could matter).

    Also if you have a really short session time (minutes or less) configured I can think of some scenarios that could trigger the issue.

    I would add some extra time after the cookie should expire before deleting the old tokens in cleanupLoginTokens or move cleanupLoginTokens after the getKeys in tryRememberLogin() to enable using tokens expired but not already used, but both changes will only help when the browser is sending the cookie when the server does not expect it to be setted but in your cases it seems that the faulty cookie seems to have a expiration date some time in the future as you need to reset it manually.

  19. bantu commented on Oct 28, 2013

    @bantu

    @frisco82 Development on localhost. Switching from master to branches, to stable5 and back and forth all the time. Nuking the configuration files every now and then, reinstalling every now and then.

  20. friscoMad commented on Oct 28, 2013

    @friscoMad
    Contributor

    Umm #3985 wasn't backported to OC5, so that could trigger the issue if you logout in OC5, change to OC6 and continue working without closing the browser/deleting the session files.

  21. karlitschek commented on Nov 15, 2013

    @karlitschek
    Contributor

    should be fixed. If not than please open a new issue.

  22. Bugsbane commented on Jun 1, 2014

    @Bugsbane

    I just got this with OC 6.0.3, although all I had to do was enter my login details again and all was good. I didn't need to delete cookies or anything. The message still appears though.

  23. mflu commented on Jun 17, 2014

    @mflu

    I also got this with OC 6.0.3 (upgraded from 6.0.2)

  24. locked as resolved and limited conversation to collaborators on Aug 16, 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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions