Authentication and Session Management
Test Cases:
1. SQL injection in login form
Username: admin' OR '1'='1' --
Password: anything
2. NoSQL injection (MongoDB)
Username: {"$gt": ""}
Password: {"$gt": ""}
3. LDAP injection
Username: *)(&
Password: anything
4. Default credentials
admin:admin, admin:password, root:root, test:test
5. Password reset flaws
- Token not invalidated after use
- Predictable tokens
- Token sent in URL
- Host header injection
- Race conditions
6. JWT vulnerabilities
- None algorithm (alg: none)
- Weak secret (bruteforce with jwt_tool)
- Key confusion (RS256 to HS256)
- Signature not verifiedLast updated