Security Features Demo

  1. Password Hashing with Salt (PBKDF2)
    Go to Add User Page
  2. > Create a user and verify hashed password + salt in DB.
  3. Session Timeout (5 minutes)
    Go to Login Page
  4. > Log in, stay idle for 5 mins, session will expire automatically.
  5. HttpOnly and Secure Cookies
    Log in
  6. > Check that cookies are marked `HttpOnly` and sent only on HTTPS.
  7. SQL Injection Protection
    Go to Login Page
  8. > → Try inputting `' OR '1'='1` ~ system blocks it.
  9. Audit Logging for Login Attempts
    Go to Login Page
  10. > Check your DB table (LoginAudit or similar) after login.
  11. Role-Based Access Control Foundation
    Go to Login Page
  12. > Use different role accounts (admin/user) ~ redirect varies.
  13. Username Uniqueness & User Validity
    Go to Add User Page
  14. > Try registering with an existing username → gets rejected.