Amazon already says the behavior is against their terms of service, but their penalty isn’t effective enough.
The ability to provision a valid cert for any domain so long as you could host a file on that domain has undoubtedly eased the rapid adoption of SSL, but makes attacks like this extra devastating. Are EV certs still a thing these days? Perhaps certain domains should be given extended validation requirements? I'm shocked that a .gov could fall prey to something like this
This attack mentioned is now somewhat fixable with new CAA extensions that enable method binding and/or CA provider account restrictions, with CA/B mandating all CAs support these starting in March of this year. Example record:
ycombinator.com. 300 IN CAA 0 issue "pki.goog; accounturi=<GTS-ACCOUNT-URI>; validationmethods=dns-01"
See https://letsencrypt.org/docs/caa/#the-validationmethods-para...https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/re...
"An Amazon VPC interface endpoint – Route 53 responds with one or more IP addresses for your interface endpoint."
"When you use an alias record to route traffic to an AWS resource, Route 53 detects changes in the resource on its own. For example, suppose an alias record for example.com points to an Elastic Load Balancing load balancer at lb1-1234.us-east-2.elb.amazonaws.com. If the IP address of the load balancer changes, Route 53 starts responding to DNS queries with the new IP address."
That really feels like an oversight on AWS part no ?
People often forget to tell their DNS administrator that they stopped using what they point to; or aren't even aware that they're supposed to do it in the first place.
And even when you manage the DNS records yourself, it's not that hard to forget to maintain them.
I think there should just be a cryptographic link between a DNS record and the machine pointed to.
Which would mean that you'd break everything if you forgot to keep the DNS records updated, but that seems better than risking something like what's reported in the article.
Very unfortunate that past efforts towards that were dropped, even the original DNSSEC KEY record supported it, apparently.
I guess that nowadays it would be possible with ECH, but only in the rare case that you're not using a CDN or shared host.
Should definitely clean up DNS records after server/IP removals, seems to be actively exploited even long before.
This kind of attack is also so simple that anyone can trivially reproduce it.
Just yesterday I had a meeting with a coworker concerning a US .gov domain and we both agreed how necessary it was for this to be carefully managed with principle of least privelege and MFA and good security policies. Then I read articles like this, and that X post showing how the US Treasury CIO can't be bothered working because he's busy vibe coding a game, and just wonder why the hell I bother?
Very nice, much appreciated.
[dead]
[dead]
[dead]
[dead]
I'm not calling that good - but there are real business reasons for it. If nothing else, at AWS's scale, better enforcement could cost >$10k/day. And how long would it take for social (and maybe legal expectations) to shift, toward "If AWS is somehow involved, then it's their responsibility to mitigate or repair the problem"?
It could indeed provide a pretty strong binding between DNS domains and servers, and largely prevent these attacks.
If you're able to use it securely (see e.g. https://www.eff.org/deeplinks/2018/02/technical-deep-dive-se...), for Let's Encrypt I'd definetely use DNS-01 going forward.
Or just accounturi, actually.
It's just another case of "we could have nice things if we had DNSSEC, but DNSSEC is still not viable, so we can't have nice things".
I think what I presented mostly fits for this, just not "EV only". A CAA with `issuewild` and an `accounturi` extension would ensure only your account under a specific CA can issue for your domain (assuming said CA supports it). EV certificates meld legal concerns into an area where you really just care about domain control.
#2 should've always been entirely split from #1, and browsers conflating them has probably caused much grief. Beyond that, #2 doesn't prevent phishing through similarly named extended EVs - each Googgle vs Google.
If browsers only used to communicate #1, and we found an alternative mechanism for "the other side is who they claim to be", it'd probably be a better result .
You don't yet know whose hand you are shaking. That only starts after the handshake has begun and they start to introduce themselves.
That's why authentication and encryption have to be tied together.
No, it doesn't. If you could steal an IP with plain HTTP, you would get the same result.
[dead]
The weak link here is that the government is relying on a private entity (Amazon/AWS) to manage critical settings that the government has no control over. They've outsourced security in the name of convenience.
Doesn't this still leave you briefly vulnerable until the old DNS record's TTL expires?
Everybody involved basically conceded his point when they got to work on DANE stapling, a protocol extension whose entire premise is that DNS-based DANE is unworkable on real networks. Then, as we found, that didn't work either, for security reasons.
This is, over the very long life of the DNSSEC protocol effort, a recurring story. Time and again protocol designers come up with something with extraordinary real-world blockers, convince themselves that "no, it's the children that are wrong", and then lock in a doomed path dependency for years and years. It happened with the original design and delegation structure and "the typecode roll". It happened with authenticated denial. It happened with DNS-based DANE. And then it happened with DANE stapling.
The certificate authority knows this by (effectively) asking the domain what its key is. There are several methods to do this - one of them is to make an unencrypted HTTP request.
Is it a stupid system? Yes!