← All Labs
🛡 AI HACKING ADVANCED +230 XP · +92 no-hint bonus

A04 Cryptographic Failures – Predictable Reset Token

A reset API constructs its training token from predictable user and timestamp values.

https://a04-cryptographic-failures-predictable-reset-token.lab.local/

What is Cryptographic Failure – Predictable Password Reset Token?

Reset tokens are bearer secrets. If derived from timestamps, user IDs or other predictable values, they may be guessed or calculated. Secure reset tokens must be random, unique, short-lived and single-use.

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

  • Generate reset tokens with a cryptographically secure random generator.
  • Never derive tokens from timestamps or user IDs.
  • Store only a hash of reset tokens server-side where practical.
  • Bind each token to one account and one reset purpose.
  • Expire tokens quickly and invalidate them after use.
  • Rate-limit verification and avoid account enumeration.

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