Attacks and Exploits

A portal serves an installer only if its MD5 hash matches an entry approved by a reviewer. The tester can submit files for review but cannot edit the hash list. Which approach BEST gets a malicious installer served?

Show the answer

Correct answerC. Craft a benign and a malicious file sharing one MD5 hash, get the benign one approved, then swap

AWhy not this: Hashes cannot be reversed into file contents, and cracking a file hash does not help.

BWhy not this: Matching a fixed hash of someone else's file is a second preimage, which is not practical against MD5.

CWhy this is right: The tester controls both files, so a practical MD5 collision lets the approved hash validate the swapped-in file.

DWhy not this: Session ID guessing is a different attack and does not exploit the MD5 weakness that the check relies on.

MD5 collisions can be generated practically when the attacker controls both inputs, so two files with the same hash let the approved benign file be replaced. Matching an existing third-party hash is a second-preimage attack, which is infeasible for MD5.