CS FundamentalsHardNetworking placement · security

A DNS resolver once sent every query from the same source port with a random 16-bit transaction ID. Why did randomising the source port as well make cache-poisoning attacks much harder?

  1. A. The attacker must guess both ID and port, about 2³² combinations instead of 2¹⁶
  2. B. Random ports force DNS onto TCP, and spoofed packets cannot complete a TCP handshake
  3. C. Random ports make the resolver ignore any answer that arrives suspiciously fast
  4. D. Each port carries a signature that forged responses have no way to reproduce

Correct answer: A. The attacker must guess both ID and port, about 2³² combinations instead of 2¹⁶

A forged answer is accepted only if it matches the query's ID and the destination port. With a fixed port the attacker races just 65,536 IDs (Kaminsky's attack); a random port multiplies the search by up to another 2¹⁶.

More Computer Networks questions

Exams that ask this topic