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