News for hackers. Stuff that matters.
Re:Hijack of Amazon’s domain service used to reroute web tra... by bklyn11201 on Tuesday April 24, 2018 @02:57PM (#16915533)
HSTS wouldn't help users clicking through warnings, but it's a good thing to have (myetherwallet doesn't use HSTS).

CAA record would only help in remaining TTL. Once expired, then it doesn't matter.

So yeah, these seem like decent steps to help protect but certainly not going to 100% prevent an attack like this one.

Re:Hijack of Amazon’s domain service used to reroute web tra... by f2n on Tuesday April 24, 2018 @04:26PM (#16916208)
>HSTS wouldn't help users clicking through warning

Actually it would have! Chrome and possible other browsers do not allow clicking throw certificate validation issues on sites with HSTS. For example, try to get to https://badssl.finn.io in Chrome.

Re:Hijack of Amazon’s domain service used to reroute web tra... by cft on Tuesday April 24, 2018 @04:33PM (#16916281)
Sorry how does that help if the attackers purchase a new "valid" SSL certificate since they control the DNS and thus email?
Re:Hijack of Amazon’s domain service used to reroute web tra... by f2n on Tuesday April 24, 2018 @05:24PM (#16916751)
It does not help for that scenario, but it forces the attackers to jump through another hoop, and publish that a new cert was issued for the domain.
Re:Hijack of Amazon’s domain service used to reroute web tra... by rocqua on Tuesday April 24, 2018 @05:42PM (#16916905)
Once you control DNS, it doesn't require email, you can just use lets-encrypt. The lets-encrypt verification does not check HSTS.

Makes sense because it keeps HSTS from the lockout scenario that makes HPKP so scary.

Re:Hijack of Amazon’s domain service used to reroute web tra... by cft on Tuesday April 24, 2018 @06:19PM (#16917156)
Is it possible to get a TLD registrar to set a very short TTL like 5min on your NS record? Then you can switch to a backup DNS hosted on another network fast.
Re:Hijack of Amazon’s domain service used to reroute web tra... by rocqua on Tuesday April 24, 2018 @06:25PM (#16917200)
Yes, you can set a short TTL on your NS record, but that would not keep this attack from hijacking your site. This attack intercepts the clients DNS lookup, so the DNS a browser is talking to is ill-behaved. No amount of correct setup here will work because the ill-behaved DNS server will just replace your setup with whatever that server wants.

There is no strong defense against this as a website. With an app the solution would be certificate pinning. You could try HPKP but that comes with a host of issues and I think it is being deprecated.

Re:Hijack of Amazon’s domain service used to reroute web tra... by cft on Tuesday April 24, 2018 @06:36PM (#16917263)
Wait: in example.com say .com registrar sets a 5min TTL on NS record for example.com that resolves to 1.2.3.4. That means that your DNS server is at 1.2.3.4, serving your A and MX records. An attacker BGP hijacks 1.2.3.4. You change NS record in your .com registrar settings to 5.6.7.8 that is not compromised. Notice I am not talking about your A or MX records that you controlled on a compromised IP, but of NS record that a .com registrar controls. So after 5 min the browsers contact a non-compromised nameserver at 5.6.7.8 to get your A records.

I think unless a TLD registrar gets hijacked that mitigates the attack on your own DNS after the NS TTL

Re:Hijack of Amazon’s domain service used to reroute web tra... by rocqua on Tuesday April 24, 2018 @06:44PM (#16917332)
You are right, I was thinking of a different attack. Something like a BGP-hijack of 8.8.8.8 , 1.1.1.1 or similar often used DNS resolvers.

Here though, people using area53 for DNS probably can't move away from it as they are stuck on amazon.

Re:Hijack of Amazon’s domain service used to reroute web tra... by C4K3 on Tuesday April 24, 2018 @06:23PM (#16917184)
I'm seeing HSTS on https://www.myetherwallet.com/

  curl -I https://www.myetherwallet.com/
  strict-transport-security: max-age=63072000; includeSubdomains; preload
Re:Hijack of Amazon’s domain service used to reroute web tra... by pfg on Tuesday April 24, 2018 @06:46PM (#16917342)
Presumably that's fairly new. The domain hasn't made it on the HSTS preload list shipped by browsers yet, so my guess would be they started using HSTS in response to this attack.
Re:Hijack of Amazon’s domain service used to reroute web tra... by swinglock on Wednesday April 25, 2018 @01:12AM (#16918775)
It was addad at most a few hours earlier and as a response to the attack. That's when I checked and it did not have HSTS at that point.
Re:Hijack of Amazon’s domain service used to reroute web tra... by C4K3 on Wednesday April 25, 2018 @05:21AM (#16919824)
I see. That is indeed bad that it wasn't there before.
Re:Hijack of Amazon’s domain service used to reroute web tra... by DividableMiddle on Tuesday April 24, 2018 @03:00PM (#16915569)
wait, myetherwallet doesn't use HSTS? I thought they had a vulnerability analysis done a few months ago. I feel like this should have been something that was caught.
Re:Hijack of Amazon’s domain service used to reroute web tra... by Cshelton on Tuesday April 24, 2018 @03:46PM (#16915926)
Wow, that's scary. I even told someone recently, jokingly of course, they forgot to add HSTS for their mvp app.

But MEW doesn't have HSTS? I would never use it personally on a public Wifi, but many people will for sure and they have no idea they'd be MITM'd.

Re:Hijack of Amazon’s domain service used to reroute web tra... by tekstar on Tuesday April 24, 2018 @05:35PM (#16916835)
> But MEW doesn't have HSTS? I would never use it personally on a public Wifi, but many people will for sure and they have no idea they'd be MITM'd.

Even without HSTS a bad actor would have to either trick a user to install a root cert or trick a certificate authority to generate a cert for the domain. Both of these are possible and have happened in the past, but they're also are a requirement for the attack you mention that you seemed to have completely forgotten about.

Re:Hijack of Amazon’s domain service used to reroute web tra... by C4K3 on Tuesday April 24, 2018 @06:20PM (#16917167)
No they wouldn't, without HSTS a bad actor (public wifi) could just do an SSL strip attack. Sure, observant users would notice that the page isn't over https, and with browsers adding warnings on all http pages, that'll become more obvious, but it's still not something most people notice.

Are you thinking of HPKP?

Re:Hijack of Amazon’s domain service used to reroute web tra... by tekstar on Wednesday April 25, 2018 @09:41AM (#16921404)
ah, yes, I was confusing HSTS with HPKP.

Now I need to re-read the whole thread with this context. Thanks for the correction!