Loading page
Review the challenge brief, files, and requirements.
A password check function has a timing side-channel. Write code to exploit it.
def check_password(input_pwd, correct_pwd):
for i in range(len(input_pwd)):
if input_pwd[i] != correct_pwd[i]:
return False
time.sleep(0.01) # Side channel!
return len(input_pwd) == len(correct_pwd)
Measure timing to discover the password character by character.
Sign in to attempt this challenge.
Use Proving Grounds to continue your challenge practice.
Open Proving Grounds