Now Hacked
EN-GB

Daily security quiz #8

Question for 2026-11-08. Read the code and pick the most serious security vulnerability.

EasyPython2026-11-08

This function generates a token to include in a password reset link. What is the most serious vulnerability?

import random, string
 
def make_reset_token(length=32):
    chars = string.ascii_letters + string.digits
    return "".join(random.choice(chars) for _ in range(length))

Past questions