Subdomain takeover is a real risk most developers and even many security reviewers aren't aware of, but if you are aware enough to try to mitigate you should properly scope cookies...
-
-
-
Replying to @RichFelker @__b_c
So subdomain takeover looks like the big one, and whether the tradeoffs of token binding are worth it seems to depend on how hard it is to fix poorly scoped cookies.
1 reply 0 retweets 1 like -
Replying to @RichFelker
there are, of course, all kinds of protections available to prevent cookie theft. Token binding is unique in that it can prevent use after theft rather than trying to stop the theft itself. Both have value. Defence in depth etc. Token Binding also ...
1 reply 0 retweets 0 likes -
Replying to @__b_c @RichFelker
... can apply to things like OAuth and SSO tokens, which don't necessarily have the same characteristics as cookies. The browser case is maybe less compelling b/c of other cookie protections. But it's still useful IMHO. And, for better or worse, ...
1 reply 0 retweets 2 likes -
Replying to @__b_c @RichFelker
adoption and deployment at large likely hinges on the browser supporting it
1 reply 0 retweets 0 likes -
Replying to @__b_c @RichFelker
But you dodged Rich's main point, it has to be an attack that can't just be exploited using the same vector you used to get the cookie, right? Subdomain takeover is the first example I've heard that works, but that's pretty niche, you have to admit?
4 replies 0 retweets 2 likes -
Rich Felker Retweeted hanno
I think subdomain takeover is actually a much bigger threat than many ppl realize. IIRC
@hanno has some nice work on this. Seehttps://twitter.com/hanno/status/1021350234117599234 …Rich Felker added,
2 replies 0 retweets 2 likes -
I asked Ryan about it, subdomain takeover has the same problem, you could just serve some js that does your attack instead of steal cookie then attack from your machine. I think this is another "why not just use the vector you used to get the cookie in the first place"?
2 replies 0 retweets 2 likes -
cookie has no SOP, js has. if you control foo[dot]company and there's a cookie for *[dot]company you win with getting the cookie. I think that's one of the more serious implications of subdomain takeover.
2 replies 0 retweets 2 likes
Cookie has no SOP, but you're running under the correct origin. Therefore, just run your attack there and don't steal the cookie - same result, so token binding didn't help...right?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.