logoalt Hacker News

Taking over US Treasury subdomains for $3 each

164 points • by negura • today at 4:27 AM • 34 comments • view on HN

Comments

chinathrow • today at 9:10 AM

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

➕ show 1 reply
RandomBK • today at 9:54 AM

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

➕ show 1 reply
lmz • today at 7:49 AM

AWS could offer an Elastic IP record type for Route53 that is deleted automatically.

➕ show 2 replies
bilekas • today at 7:55 AM

> 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 ?

➕ show 1 reply
Jmstdy95 • today at 1:04 PM

while I think AWS could helps with that, but the problem would still be about the negligence of the one handling the DNS.

g-b-r • today at 2:59 PM

The detachment between DNS and the IPs and machines they point to is really risky

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.

scalableUnicon • today at 12:33 PM

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.

pwmglenn • today at 12:28 PM

Couldn't you check this much faster? isnt this an embarrassingly parallel problem? or im i missing something?

edoceo • today at 6:39 AM

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?)

➕ show 2 replies
davedx • today at 9:09 AM

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?

mschuster91 • today at 8:42 AM

Cool, a vulnerability report that does not immediately reek of AI in both copytext and visuals.

Very nice, much appreciated.

yellow_lead • today at 7:54 AM

That cio of the Treasury has something new to look at

➕ show 1 reply
jasonkhanlar • today at 8:26 AM

"the vulnerability class remains open due to Amazon Web Services position."

patryk_builds • today at 1:05 PM

[flagged]

Tomson-xx • today at 8:46 AM

[flagged]

pragmaticcombin • today at 12:48 PM

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

natas • today at 6:29 AM

pretty neat!