Deepshikha Paty
DI-ASM


Access the lab


What is Broken User Authentication (BUA)?

It happens when an app or API doesn’t properly check login credentials (like email & password).
This allows attackers to log in as someone else or get access they shouldn’t have.

How does it happen?

Example of Broken User Authentication:

Note

This behavior indicates broken user authentication, particularly due to improper session invalidation.
Logging out should destroy the session token or cookie associated with the user. If the session is not properly invalidated, it allows unauthorized access, violating secure authentication practices.


🎯 Why is it dangerous?

✅ How to Prevent ?

  1. Always check both email and password.
  2. Use strong tokens (like JWT) for security.
  3. Never store passwords in plain text.
  4. Add features like:
    • Multi-factor authentication (MFA)
    • Account lockout after too many tries
    • CAPTCHA to stop bots
  5. Never show or send passwords in the URL or request body.