Question: Suppose the website uses the following silly function to verify a k - byte cookie: def verify ( submitted _ ck , stored _ ck

Suppose the website uses the following silly function to verify a k-byte cookie:
def verify(submitted_ck, stored_ck):
for i in range(K):
if submitted_ck[i]== stored_ck[i]:
sleep(1)
else:
return False
return True
If the verify() return False, the website will respond with a HTTP status 200 OK, otherwise it responds
with status 403 Forbidden. Show that it's possible for an attacker to guess the cookie using ~256K trials.
Suppose the website uses the following silly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!