← All Labs
A04 Cryptographic Failures – Weak Password Hashes
A synthetic password table uses unsalted fast hashes, demonstrating unsafe password storage.
What is Cryptographic Failure – Unsalted Fast Password Hashing?
Password storage should use a dedicated adaptive password-hashing function with a unique salt per password. Fast hashes such as MD5 or SHA-1 are unsuitable for password storage because they make guessing inexpensive.
About this lab
Designed by the SecurityElites team specially for training.
How AI helps you find it
AI can explain the relevant HTTP behaviour, suggest a focused test checklist and help compare expected and observed responses. Confirm findings manually.
How to fix it
- Use Argon2id, scrypt, bcrypt or PBKDF2 with an appropriate work factor.
- Generate a unique cryptographically random salt for each password.
- Never use fast general-purpose hashes for password storage.
- Rehash passwords on successful login when upgrading legacy storage.
- Protect password databases with strict access controls.
- Require resets if stored hashes may have been exposed.
How AI helps you defend against it
AI can help review the relevant route, input handling or configuration and draft regression tests. A developer must validate the implementation.
Read the full OWASP LLM Top 10 guide · All free labs · AI red team certification