Taking over US Treasury subdomains for $3 each
142 points by negura 10 hours ago | 28 comments

chinathrow 5 hours ago
> AWS confirmed with us that they don’t plan to make changes, as they see the takeover as depending on customer-side DNS records rather than an issue in their services. They also told us they treat rapid allocation and release as a policy violation and have controls against it. Whilst this is true, they could do more to prevent the issue in our opinion, and the vulnerability class remains open due to their position.
reply
bell-cot 3 hours ago
To be fair, AWS is downstream of the real problem here. And contacting the US Treasury and insisting that they fix their DNS could go badly wrong for AWS - so leaving that to outside security researchers and hard-core masochists looks like the right business decision.
reply
fn-mote 28 minutes ago
The suggestion to Amazon was to apply more effective rate limiting, not contact the treasury department.

Amazon already says the behavior is against their terms of service, but their penalty isn’t effective enough.

reply
RandomBK 5 hours ago
I want to zoom in on the HTTPS angle of this.

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

reply
ThunderSizzle 3 hours ago
The problem is that HTTPS was used to try to convey 1. That your communication to the server is secure from a third party (in the middle), and 2. That server is owned by the second party entity itself (that is what extended EV basically is)

#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 .

reply
JambalayaJimbo 9 minutes ago
I don’t understand how you could have #1 without #2. Or, confidentiality is inherently linked to authentication. How can you be sure your communication is kept secret from all third parties if you do not know you’re speaking with the second party?
reply
lmz 7 hours ago
AWS could offer an Elastic IP record type for Route53 that is deleted automatically.
reply
w3ll_w3ll_w3ll 6 hours ago
Already exists, they are called Alias record.

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."

reply
lmz 5 hours ago
It's been a while since I did this, but the page doesn't mention Elastic IPs as eligible Alias targets.
reply
w3ll_w3ll_w3ll 5 hours ago
I think you can point to any network interface on a VPC, but I never did it myself.
reply
lmz 4 hours ago
I guess that would work too, for cases where the thing you move across is the ENI.
reply
relistan 6 hours ago
+1 Seems like an obvious and good solution.
reply
bilekas 7 hours ago
> moved the matching IPs across. It worked without any issues, despite sitting in the same organization as the banned account

That really feels like an oversight on AWS part no ?

reply
iLoveOncall 5 hours ago
It really depends on the goal of the suspension. I highly doubt it's actually to prevent actual malicious abuse, and more to force a customer with a broken script or pipeline to fix it.
reply
scalableUnicon 2 hours ago
I remember reading something like this long back, and dug this out after a bit of searching: A Recycled IP Address Caused Me to Pirate Books by Accident(https://news.ycombinator.com/item?id=17020944)

Should definitely clean up DNS records after server/IP removals, seems to be actively exploited even long before.

reply
pragmaticcombin 2 hours ago
I run [0] DNS ASSISTANT and for the past six months been in talks with many companies and 99% of them are unaware of this security gap and when I try explain they don’t think it’s a security issue. Real time monitoring for passive records needs to part of a organizations security posture.

[0] https://dnsassistant.com

reply
pwmglenn 2 hours ago
Couldn't you check this much faster? isnt this an embarrassingly parallel problem? or im i missing something?
reply
fn-mote 25 minutes ago
You’re missing the friction of requesting an increased quota. The article mentions the 10x speed up is the most you can get without including an explanation with your request for 25x (or more?).
reply
Jmstdy95 57 minutes ago
while I think AWS could helps with that, but the problem would still be about the negligence of the one handling the DNS.
reply
davedx 5 hours ago
This is awful negligence on both sides IMO - the orgs who don't bother to maintain DNS hygiene, and AWS for allowing an account explicitly banned for EIP abuse to then transfer its EIPs to a different account without any safeguards.

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?

reply
edoceo 8 hours ago
Gotta have a host-removal-checklist. Remove these IPs from FW, WAF, DNS and other records on teardown. One place I worked would hold the IPs unused for 60 days. And review DNS quarterly (why not automate?)
reply
dotancohen 6 hours ago
The typical answer to that is that IPv4 addresses are scarce, thus valuable, thus to be reallocated as soon as possible. My opinion on the topic has gone back and forth over the years.
reply
syshyk 7 hours ago
In my experience, no one wants to take responsibility for the process, and higher ups don't want to make the decision on who should.
reply
mschuster91 6 hours ago
Cool, a vulnerability report that does not immediately reek of AI in both copytext and visuals.

Very nice, much appreciated.

reply
yellow_lead 7 hours ago
That cio of the Treasury has something new to look at
reply
dotancohen 6 hours ago
The issue is not treasury specific.
reply
jasonkhanlar 6 hours ago
"the vulnerability class remains open due to Amazon Web Services position."
reply
patryk_builds 57 minutes ago
[flagged]
reply
Tomson-xx 6 hours ago
[flagged]
reply
natas 8 hours ago
pretty neat!
reply