6 ms·
Protecting Against HSTS Abuse
- nerdponx 9y agoHowever, the internet is a wide space full of unique and amazing uses of Web Technology. If you feel that you have a legitimate case where these new rules are not working as intended, we would like to know about it. Please send feedback and questions to web-evangelist@apple.com or @webkit on Twitter, and file any bugs that you run into on WebKit’s bug tracker. I appreciate this part. Do they actually respond to these inquiries?
- saagarjha 9y agoThe bug tracker and Twitter account are pretty good about responding, from what I've seen. I'm not familiar with the email.
- C4K3 9y agoWhat about websites that are on second-level domains? E.g. amazon.co.uk Would example.amazon.co.uk then not be able to set HSTS for amazon.co.uk?
- osteele 9y agoexample.amazon.co.uk and amazon.co.uk are not matching domains as defined in the RFC[1] (they are not congruent). The includeSubDomains directive[2] allows the HSTS policy set for amazon.co.uk to apply to its subdomain example.amazon.co.uk, but not vice versa. [1] https://tools.ietf.org/html/rfc6797#section-8.2 https://tools.ietf.org/html/rfc6797#section-8.2 [2] https://tools.ietf.org/html/rfc6797#page-16 https://tools.ietf.org/html/rfc6797#page-16
- gsnedders 9y agoYes, using pubsuffix+1 instead of TLD+1 would make way more sense. I've asked here: https://twitter.com/gsnedders/status/974765437283119104 https://twitter.com/gsnedders/status/974765437283119104
- gsnedders 9y agoPer the response it is using pubsuffix+1, and hence co.uk is treated as an effective TLD.
- deleted 9y ago[deleted]
- ademarre 9y agoThe public suffix is more correct than the TLD; however the fact that publicsuffix.org accepts private domains at the domain owners request weakens the mitigation.
- lwansbrough 9y agoI think I'm missing something. Why wouldn't this attack work on, for example: bit1.com, bit2.com, bit3.com, etc.?
- draw_down 9y agoHmm?
- CydeWeys 9y agoMy interpretation was that it can only be set either on the exact hostname that was loaded, or on the second level domain name that was loaded. To set it on 32 different SLDs you'd have to redirect through 32 different domains, which the user would notice. Note that this is for the page that was loaded only, not for additional resources hosted on other hostnames.
- deleted 9y ago[deleted]
- Karliss 9y agoRedirecting 32 times could be made less obvious by opening a small popup which closes after finishing it's work. It used to be possible to open a popup in background, that would have made it almost practical.
- JetSpiegel 9y agoOr just an async script?
- deleted 9y ago[deleted]
- netheril96 9y agoMaybe because that is a little bit more expensive.
- CydeWeys 9y agoGreater use of HSTS preloading is also a good way for legitimate sites to prevent being affected by any sort of privacy crackdowns on HSTS. Preloading at the TLD level is ideal.
- ploxiln 9y agoPreloading at the TLD level is pretty severe, will never be done for .com / .net / .org, and so will never apply to the vast majority of sites people visit. Interesting idea, but unrealistic.
- CydeWeys 9y agoYes, it can't be done retroactively, but it can be done for new TLDs that haven't launched yet.
- kbsletten 9y agoIf I remember correctly, Google has done this with the `.dev` TLD they own, so we're already seeing some of it.
- CydeWeys 9y agoThere are currently eight HSTS-preloaded TLDs with more on the way, including the first available for open registration coming soon.
- pingiun 9y agoDo you have a list of them? I'm especially interested in the TLD for open registration.
- jwilk 9y ago.app .bank .chrome .dev .foo .google .insurance .page Source: https://github.com/chromium/chromium/raw/master/net/http/transport_security_state_static.json https://github.com/chromium/chromium/raw/master/net/http/tra... (grep for TLD)
- dmm 9y agoWhy don't browsers just try https first? So if I type "example.com" into the box it tries https://example.com https://example.com. Why is implementing HSTS and preserving the current behavior more useful?
- ATsch 9y agoBecause any attacker in the middle can purposefully make the https connection fail, thereby causing all data to be sent in the clear. HSTS and hsts preload makes sure that this can not happen.
- jake_the_third 9y agoThat's what EFF's HTTPS Everywhere plugin does when set to strict mode. On a related note, would strict mode thwart HSTS-based cookies? My current understanding of this technique is that it depends on the victim being able to connect to HTTP. Since strict mode prevents the victim from making normal HTTP connections, I'm inclined to believe that strict mode does help mitigate this kind of tracking.
- bcaa7f3a8bbc 9y agoI remembered a demo showing HSTS's potential tracking capabilities, and it doesn't work well if HTTPS Everywhere is enabled.
- mkeyhani 9y agoHSTS is trying to protect against a specific kind of Man-in-the-Middle (MITM) attack: when the man in the middle pretends that the website you are trying to access does not support HTTPS. I believe trying HTTPS first wouldn't help: the MITM would refuse your connection, and your browser will try HTTP after that. With HSTS, the server tells your browser that it is going to support HTTPS for a while. Now, if your first connection to server is secure (no MITM), from now on your browser will know that this particular domain supports HTTPS. So, it will know something fishy is going on if a MITM tries to pretend otherwise.
- 9y ago
- mirimir 9y agoFYI re Tor browser:[0] > 15. HSTS and HPKP supercookies > An extreme (but not impossible) attack to mount is the creation of HSTS supercookies. Since HSTS effectively stores one bit of information per domain name, an adversary in possession of numerous domains can use them to construct cookies based on stored HSTS state. > HPKP provides a mechanism for user tracking across domains as well. It allows abusing the requirement to provide a backup pin and the option to report a pin validation failure. In a tracking scenario every user gets a unique SHA-256 value serving as backup pin. This value is sent back after (deliberate) pin validation failures working in fact as a cookie. > Design Goal: HSTS and HPKP MUST be isolated to the URL bar domain. > Implementation Status: Currently, HSTS and HPKP state is both cleared by New Identity, but we don't defend against the creation and usage of any of these supercookies between New Identity invocations. 0) https://www.torproject.org/projects/torbrowser/design/ https://www.torproject.org/projects/torbrowser/design/ [February 19th, 2018]
- im3w1l 9y ago> We modified WebKit so that when an insecure third-party subresource load from a domain for which we block cookies (such as an invisible tracking pixel) had been upgraded to an authenticated connection because of dynamic HSTS, we ignore the HSTS upgrade request and just use the original URL. Could someone explain this?
- aiCeivi9 9y agoThey just assume that 3rd party shouldn't ever have a need to send "http://" http://" link only to redirect to "https://" https://" and are willing to stop that feature from working even if it can lead to false positives and just break some sites.
- sm64 9y agoI feel like I'm missing something but wouldn't this whole brouhaha be avoided by making the website 100% HTTPS and redirecting any HTTP requests to HTTPS through the server itself? This is common practice with Nginx, for example.