by spacefight · 11y ago · 0 comments
No https:// by default. Again, if you market this as towards the nerdy audience: Put _everything_ behind HTTPS. I simply do not want to let others know, what phone I might buy.
Thank you.
The only sane solution is to set up HTTP to redirect to HTTPS, and add an HSTS cookie.
Allowing access on both http and https is indeed a bad practice, but not in regards to the scenario you described.
The scenario you described has been covered since long by the 'secure' attribute, available when creating cookies. Assuming the authentication was performed from within the https channel, the cookie won't be disclosed when requests are triggered on the http channel. This covers the 'Reddit' case from an application layer perspective.
The vulnerability is rather in browsers (such as Firefox). They allow the rewriting of an existing cookie value through the http channel, although it was originally set through the https channel. This is a huge problem and I still don't understand why this isn't reported by any researcher as a critical security flaw...
This is the responsibility of the admin, not the user.