4 ms·
Start by implementing https on Reddit then. The only page using https is the login page, but only if you load reddit.com/login directly. If you use the main for
by lucb1e 13y ago
Start by implementing https on Reddit then. The only page using https is the login page, but only if you load reddit.com/login directly. If you use the main form (which doesn't even mention the dedicated and secured login page), sslstrip (there's an app for that, literally) can intercept the credentials.
- pietro 13y agoIf the form is submitted to an HTTPS URL, the credentials will be submitted using HTTPS. The protocol of the page containing the form doesn't matter.
- lucb1e 13y agoI'm sorry but you're wrong. Look up what sslstrip does (that I mentioned in the post you replied to).
- thirsteh 13y agoHe's right--you're just not talking about the same thing. You're saying that if somebody forges a non-HTTPS page so that it doesn't POST to the original secure page, then you can trivially intercept the credentials, and you're absolutely right. But pietro is also correct that if a non-HTTPS page that POSTs to a HTTPS page isn't manipulated, then yes, the POST contents will be encrypted--but the fact that that doesn't matter if you can manipulate the connection is clearly a problem, one HSTS is intended to alleviate.
- lucb1e 13y agoExcept if the HSTS cache is not present for whatever reason (reinstalled OS, new browser, cleared browser cache, or just a first-time visit). Rather unlikely usually, but HSTS is not the ultimate solution to this. People should type https manually or know exactly what to look for (padlock; don't mistake paypal.com.index.php.session.longhexcode.tk for paypal; mixed content; etc.) if they want to be absolutely positive the connection is secure.
- thirsteh 13y agoThat's why I said alleviate, not solve. HSTS is a bandaid at best. The bottom line is regular people don't know the difference between entering "www.mybank.com" or "https://www.mybank.com" https://www.mybank.com", they never do the latter, and they rarely notice if a page is non-HTTPS if it has other icons that make it seem secure (e.g. "McAfee protected")--hence the reason sslstrip exists in the first place.
- thirsteh 13y agoActually, if you go to reddit.com/login directly, you get http://reddit.com/login http://reddit.com/login, not https://reddit.com/login https://reddit.com/login, which means anyone can forge the login page. This is the problem HSTS was designed to be a bandaid for, but reddit doesn't use it: # curl -i reddit.com/login HTTP/1.1 302 Moved Temporarily Server: AkamaiGHost Content-Length: 0 Location: http://www.reddit.com/login Date: Sun, 30 Jun 2013 22:50:13 GMT Connection: keep-alive # curl -i www.reddit.com/login HTTP/1.1 302 Moved Temporarily Content-Length: 0 Location: https://ssl.reddit.com/login Cache-Control: no-cache Date: Sun, 30 Jun 2013 22:50:24 GMT Connection: keep-alive