Home/Blog/Cheat Sheets
Cheat Sheets

Cheat Sheet Series – Authentication

Authentication confirms that a user is who they claim to be. The cheat sheet below condenses the OWASP best-practice guidance into a quick reference.

TopicKey points
User IDsTreat identifiers as case-insensitive and unique; use email addresses with care.
Password strengthRequire a sensible minimum length, allow long passphrases, and avoid arbitrary composition rules.
Breached passwordsCheck new passwords against known-breached lists and reject matches.
Secure storageHash passwords with a strong, salted, adaptive algorithm such as bcrypt or Argon2.
Password recoveryUse time-limited, single-use tokens; never email passwords or reveal whether an account exists.
Secure transmissionSend credentials only over TLS.
Generic error messagesReturn identical messages for invalid usernames and passwords to prevent account enumeration.
Re-authenticationRequire the current password before changing passwords or performing sensitive actions.
Multi-factor authenticationOffer and encourage MFA, especially for privileged accounts.
Protect against automationApply rate limiting, lockouts and CAPTCHA to resist brute-force attacks.
#cheat-sheet#authentication#owasp

Ready to strengthen your security?

Talk to our consultants about your penetration testing requirements, or get a fast, transparent quote.