Authentication Vulnerabilities

Cheatsheet for CTFs & web pentests. Based on PortSwigger Web Security Academy.

Factors: knowledge (password) / possession (token, phone) / inherence (biometrics). Same factor verified twice (e.g. email 2FA) != real MFA.

Recon / username enumeration

Before brute-force, always enumerate valid usernames.

Signals a username is valid:

Burp Intruder tips:

Brute-forcing passwords

Bypassing brute-force protection

IP-based block:

Account lock:

CAPTCHA:

Rate limit:

HTTP Basic Auth

Authorization: Basic base64(user:pass) — sent every request.

2FA / MFA flaws

Bypass checklist:

“Stay logged in” / remember me

Always study your own cookie first — you’re an attacker with an account.

Bruteforcing a stay-logged-in cookie (Burp Intruder):

Cookie theft chain:

Password reset / recovery

Inherently dangerous — bypass path around normal auth. Always poke every endpoint in the flow.

Change password

Often overlooked — same auth-check surface as login, but usually less hardened.

Registration

OAuth / SSO (quick hits)

General CTF checklist

Tools