Skip to content
Cache bugs Write-up Advanced

Multiple DNS implementations vulnerable to cache poisoning

Multiple DNS implementations have flaws such as insufficient transaction ID randomness and fixed source ports, which make DNS cache poisoning easier. An attacker could inject forged DNS records, redirecting traffic to malicious hosts.

kb.cert.org

Published on kb.cert.org

Deficiencies in the DNS protocol and common DNS implementations facilitate DNS cache poisoning attacks.

The author, on kb.cert.org

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 the DNS protocol's limited transaction ID space and implementations' failure to randomise source ports and transaction IDs sufficiently, allowing attackers to guess and spoof responses.

Impact

An attacker could cause a nameserver's clients to contact incorrect, possibly malicious hosts, redirecting web traffic, email, and other network data to systems under the attacker's control.

What the attacker needed

Attacker can spoof IP packets; target is a caching DNS resolver; predictable transaction ID or source port

The fix

Vendors should apply patches that implement source port randomisation, and administrators should restrict recursion, filter spoofed traffic, and disable recursion on untrusted-facing servers.

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 website names into numeric addresses. Cache poisoning means tricking a DNS server into storing a fake address, so when you visit a site, you're sent to the wrong place. This report explains that many DNS programs have weaknesses that make this trick easier, like using predictable numbers when asking for addresses.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

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.