For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication Attacks LABS (Portswigger Academy)

Labs from Portswigger Academy

Lab 1: Username enumeration via different responses

fuzz the username, it will give different response for valid username.
e.g; Invalid username vs Invalid Password

Lab 2: 2FA simple bypass

directly visit the 2FA endpoint
if it doesnot work, change the referrer header as if we came from the 2FA page

Lab 3: Password reset broken logic

the idea is, when i try to reset the password, web app sends mail containing password reset url containing temp-forgot-password-token
then for the acutal password reset function, post request is sent with this temp-forgot-password-token in url and body along with new password

here, we can simply change the temp-forgot-password-token to something else (matching in both url and body)

Lab 4: Username enumeration via subtly different responses

Invalid username or password.  (for invalid username)
vs
Invalid username or password   (for a valid username)

in response during username enumeration

Lab 5: Username enumeration via response timing

Lab 6: Broken brute-force protection, IP block

Lab 7: Username enumeration via account lock

Lab 8: 2FA broken logic

Lab 10: Offline password cracking

Lab 11: Password reset poisoning via middleware

Lab 12: Password brute-force via password change

Lab 13: Broken brute-force protection, multiple credentials per request EXPERT LEVEL

Last updated