TLDR InfoSec · STRATEGIES & TACTICS

HOW DO TIMING ATTACKS WORK?

nickg.ca3 min read

Summary from the TLDR InfoSec newsletter

Timing attacks that target string comparison work by measuring how long it takes a vulnerable server to verify a string, such as a password or other secret. When a vulnerable function compares two strings, it loops through each character to check for equality, causing the function to take slightly longer to complete with each correct character. The page includes a demo for how this attack works in practice.