Cyber Class 9 Python Programming

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.

Question image
Answer as guestStart Free Practice Test to earn Practice PointsHow to earn pointsAsk a question+3Answer a question+1Someone answers yours+1Your Q gets upvoted+1Pioneer bonus (first 5)+51 point = ₹1 discount on purchases, ask questions & climb the leaderboard!
70%