Abusing anti-DDoS mechanisms to perform DNS cache poisoning
Some anti-DDoS mechanisms drop DNS queries, leaving legitimate queries unanswered. An attacker can exploit this gap to send forged DNS responses to a resolver, making cache poisoning attacks much more efficient and potentially intercepting traffic to websites or email servers.
ssi.gouv.fr
Published on ssi.gouv.fr
During the DNS OARC Fall Workshops conference, taking place on the 5th and 6th of October, in Phoenix, Arizona (USA), the ANSSI has presented a way to abuse some denial of service (DDoS) countermeasures to ease DNS cache poisoning attacks.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, anti-DDoS mechanisms that drop or rate-limit DNS queries leave legitimate queries unanswered, removing the race between the authoritative server and the attacker and giving the attacker the full timeout period to send forged responses.
Impact
A successful attack could let an attacker inject a forged DNS delegation and intercept traffic to a website or email server for all clients using the poisoned resolver; the text notes the attack requires a large amount of spoofed traffic and may only go unnoticed by large operators or from inside a LAN with weak filtering.
What the attacker needed
Attacker can send spoofed packets; target resolver uses a vulnerable anti-DDoS mechanism; large traffic volume (e.g. 100Mbps for 8 hours)
The fix
The short-term fix is to ensure every query from a legitimate resolver is answered, even with a truncated response or a REFUSED error, and the long-term fix is to deploy DNSSEC.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
DNS is like the internet's phone book, turning names into addresses. A resolver caches these answers to speed things up. Some defences against denial-of-service attacks drop certain DNS queries, and this creates a window where an attacker can slip in a fake answer. If the resolver accepts the fake answer, the attacker can redirect traffic meant for a website or email server.
What is Cache bugs?
A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.