Skip to content
Cache bugs Write-up Advanced

The CoreDNS Cache Poisoning Conjecture

The author analyses CoreDNS's forward plugin and argues that its persistent connection cache can keep the client-side UDP source port static for as long as traffic keeps refreshing the cached connection. Combined with a co-located attacker able to shrink the ephemeral port range, this could make off-path cache poisoning more feasible, though the text presents this as a conjecture rather than a demonstrated exploit.

sbudella.altervista.org

Published on sbudella.altervista.org

One of the most important breakthroughs of recent years in the field of network security was the revival of the original Kaminsky's cache poisoning attack by Keyu Man et al.: thanks to a side-channel affecting the ICMP rate limit in the Linux kernel network stack, the technique showed how it was possible to unveil the…

The author, on sbudella.altervista.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 forward plugin's persistent connection cache reuses the same connected UDP socket, so the kernel-assigned source port stays the same while traffic keeps the cached connection alive.

Impact

An off-path attacker could, in principle, reduce the guessing needed for cache poisoning, but the text frames this as a conjecture and notes the attacker must still guess the static port and the transaction ID.

What the attacker needed

Attacker co-located with the forwarder; ability to keep cached connection alive; guess static source port and transaction ID

How it was found

  1. Configure a CoreDNS forwarder pointing at an upstream resolver and enable logging.
  2. Send repeated lookups to the forwarder at intervals shorter than the connection expiry.
  3. Observe the logged local address of the cached connection across queries.

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.

A DNS forwarder asks another DNS server for answers on behalf of clients. To stop faked answers being accepted, each outgoing request should use a random source port and a random transaction ID, so an attacker has to guess both. This write-up argues that CoreDNS reuses the same outgoing connection for a while, which can keep the source port fixed and make guessing easier.

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.