Back To Blogs

Authentication Testing Checklist: Sign-Up, Login, Sessions and Password Reset

Authentication is the front door of every application, and one of the most attacked parts. This checklist covers what to test from sign-up to sign-out. Test only in environments you're authorised to use.

Registration

  • Email format is validated on the server (john@, john@example, spaces) and not just in the form
  • Emails are normalised (case-insensitive): [email protected] and [email protected] are the same account
  • Duplicate registration is handled without revealing too much (consider whether "email already registered" is acceptable for your product)
  • Password rules are enforced server-side and explained clearly
  • Very long passwords are accepted up to a reasonable limit (and don't crash the server)
  • Email verification is required where the product depends on owning the email
  • Verification links expire and work only once
  • Bots: rate limiting or CAPTCHA on sign-up, if specified

Login

  • Valid credentials sign in; the session starts and the user lands in the right place
  • Wrong password and unknown email give the same generic message ("Invalid email or password")
  • Rate limiting after repeated failures (per account and per IP); the lockout message is clear
  • Response timing doesn't obviously differ between unknown emails and wrong passwords
  • Credentials are never sent in the URL (check DevTools → Network)
  • The login form works with password managers (correct autocomplete attributes)
  • "Remember me" behaves as documented

Sessions

  • Session cookies have HttpOnly, Secure and an appropriate SameSite attribute
  • Sessions expire after the documented idle and absolute time
  • A new session ID is issued after login (no session fixation)
  • Signing out invalidates the session on the server: replaying an old token or cookie fails
  • Changing the password ends other sessions (or offers to)
  • Two tabs: signing out in one is reflected in the other
  • Browser Back after sign-out doesn't show protected data

Tokens (SPAs and APIs)

  • Access tokens are short-lived; refresh tokens rotate
  • Reusing an old refresh token fails (and ideally revokes the token family)
  • Tokens aren't stored where any script can read them, unless that's a deliberate, reviewed choice
  • Role or permission changes take effect promptly, not only when a token expires

Password reset

  • The reset request gives the same response whether or not the email exists
  • Reset links are single-use, expire, and are long and random
  • Using a reset link signs out other sessions
  • The new password must follow the password rules
  • Requesting several resets invalidates the older links
  • Rate limiting on reset requests

Social login and single sign-on

  • Linking a social account to an existing account requires proof of ownership. Never link purely on an unverified email, because an attacker could pre-register the victim's email and capture the account.
  • The state parameter is checked (protects against CSRF on the callback)
  • Denying consent at the provider returns a clear message, not an error page
  • Unverified emails from the provider are treated with care

Multi-factor authentication

  • MFA can't be skipped by going straight to a post-login URL
  • Codes expire and are single-use; brute force is rate limited
  • Backup codes work once each
  • Disabling MFA requires re-authentication

Bugs we see most often

  1. Account enumeration through different error messages or timings
  2. No rate limiting on login or reset
  3. Sign-out that only clears the browser, while the token still works on the server
  4. Reusable or never-expiring reset links
  5. Account linking by unverified email, which leads to account takeover

Practise structured thinking about tricky flows with QAUnlocked quizzes and timed battles.

authenticationsecurity testinglogin testingchecklist

Comments

0 Comments

Be the first to comment.