Asked by GIANSH GUPTA KHUNDKER · BIRLA BRAINIACS
A developer modifies the leaderboard algorithm to strip whitespace using .strip() on input data. If a user registers with the password " securepass " (with spaces) but the code evaluates it as:
What type of logical vulnerability or behavior occurs if the user later types "securepass" without any spaces at the login screen?A) The login fails because the stored token expects the original spaces.B) The login succeeds because both inputs resolve to the identical cleaned string before hashing.
Register to earn points & climb the leaderboard!
quiz Browse Questions emoji_events Leaderboard