You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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."
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.
@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«.
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)?
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.
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.
@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.
@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.
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.
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.
Activity
LukasReschke commentedon Dec 16, 2012
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:
/cc @karlitschek
karlitschek commentedon Dec 16, 2012
Sounds reasonable. @jancborchardt What do you think?
karlitschek commentedon Dec 18, 2012
@jancborchardt What do you think?
jancborchardt commentedon Dec 18, 2012
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.
karlitschek commentedon Dec 19, 2012
So @LukasReschke @jancborchardt We have to conflicting suggestions from you both. What do we do? ;-)
jancborchardt commentedon Dec 20, 2012
@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«.
LukasReschke commentedon Dec 20, 2012
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
jancborchardt commentedon Dec 20, 2012
Ok. @karlitschek do you also think that’s a good solution? If so, can you update your pull request #917?
karlitschek commentedon Dec 20, 2012
yep. Will do this later
karlitschek commentedon Dec 20, 2012
@jancborchardt @DeepDiver1975 @LukasReschke please review
RandolfCarter commentedon Apr 14, 2013
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)?
jancborchardt commentedon Apr 14, 2013
@LukasReschke you closed the issue – I assumed you removed the warning (and also fixed the log in screen being shown so often). ;)
32 remaining items
jancborchardt commentedon Sep 22, 2013
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.
MorrisJobke commentedon Sep 22, 2013
My 2 cents: I just have to relogin (no need for cookie deletion).
bantu commentedon Sep 22, 2013
@jancborchardt I agree. I often experience this during development. It's very annoying.
rhamietron commentedon Oct 23, 2013
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.
friscoMad commentedon Oct 28, 2013
@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
cleanupLoginTokensor movecleanupLoginTokensafter thegetKeysintryRememberLogin()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.bantu commentedon Oct 28, 2013
@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.
friscoMad commentedon Oct 28, 2013
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.
karlitschek commentedon Nov 15, 2013
should be fixed. If not than please open a new issue.
Bugsbane commentedon Jun 1, 2014
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.
mflu commentedon Jun 17, 2014
I also got this with OC 6.0.3 (upgraded from 6.0.2)