Bitsquatting: DNS Hijacking without exploitation
The author registered domain names that differed by one bit from popular domains (bitsquatting) and observed that devices with memory errors resolved and connected to these domains. An attacker could exploit such errors to redirect traffic to a malicious server, though the text does not demonstrate an actual attack beyond logging requests.
dinaburg.org
Published on dinaburg.org
Bitsquatting refers to the registration of a domain names one bit different than a popular domain. The name comes from typosquatting: the act of registering domain names one key press different than a popular domain.
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 hardware memory errors (bit flips) cause domain names to be corrupted before DNS resolution, leading devices to resolve and connect to unintended bitsquat domains.
Impact
Bit-errors could cause devices to contact attacker-controlled domains, potentially redirecting traffic or serving malicious content, though the study only observed connections and did not exploit them.
What the attacker needed
Attacker registers bitsquat domains; victim device has memory error; error occurs before DNS resolution
The fix
There is no direct fix for hardware bit-errors, but DNSSEC can mitigate the small fraction of errors that occur during DNS resolution.
How it was found
- Choose frequently resolved domains (e.g., content delivery and ad networks) to bitsquat.
- Register domain names that differ by one bit from the chosen domains.
- Set up a DNS server to answer queries for both the original and bitsquat domains, and a web server to log HTTP requests.
- Wait for connections and analyse the logs to identify bitsquat traffic.
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.
Computers sometimes make tiny mistakes in memory, flipping a single bit from 0 to 1 or vice versa. If that bit is part of a domain name, the computer might contact a different website than intended. This researcher bought domain names that were one bit different from popular ones and found that some devices did contact them, showing that such errors happen in the real world.