News for hackers. Stuff that matters.
Re:Dear Flask, Please Fix Your “Secure” Cookies by jerf on Friday August 10, 2012 @10:03PM (#4369155)
I don't have access to Flask or the ability to answer this question in any reasonable amount of time, so I'm asking. If your session has the user id, what format is the user id in? Is it the email address, or goodness forbid, an autoincremented numeric ID? Or anything else even remotely guessable? If so, you've still got a problem.

Obscuring through an opaque token of suitable entropy means that it is effectively impossible to guess a valid token. Accepting the client's idea of who the user is is playing with fire.

Re:Dear Flask, Please Fix Your “Secure” Cookies by nezza-_- on Friday August 10, 2012 @10:08PM (#4369163)
Flask doesn't have its own user system, in the wild one sees stuff like user-ids and so on. It makes it very easy to make bad mistakes.
Re:Dear Flask, Please Fix Your “Secure” Cookies by heretohelp on Friday August 10, 2012 @10:56PM (#4369261)
It's a MongoDB objectid. It's guessable. Still not seeing the problem yet, as you haven't bothered to explain it.
Re:Dear Flask, Please Fix Your “Secure” Cookies by gnaritas on Friday August 10, 2012 @11:03PM (#4369276)
So what stops me from changing the user ID cookie to another user and impersonating them?
Re:Dear Flask, Please Fix Your “Secure” Cookies by daeken on Friday August 10, 2012 @11:23PM (#4369314)
The HMAC authenticating the cookie.
Re:Dear Flask, Please Fix Your “Secure” Cookies by gnaritas on Friday August 10, 2012 @11:41PM (#4369350)
So it is a secure cookie, that wasn't clear.
Re:Dear Flask, Please Fix Your “Secure” Cookies by heretohelp on Friday August 10, 2012 @11:43PM (#4369354)
So going back to my original question, does this mean I have nothing to worry about?
Re:Dear Flask, Please Fix Your “Secure” Cookies by gnaritas on Saturday August 11, 2012 @12:33AM (#4369442)
I won't dare give security advice with all the security professionals lurking around here.
Re:Dear Flask, Please Fix Your “Secure” Cookies by heretohelp on Saturday August 11, 2012 @02:53AM (#4369614)
K, falling back to my "not giving a fuck" mode I was in before and assuming any compromises of the session would involve access to my backend servers which is worse than losing control of the sessions.