- BCrypt Hashing: 12 rounds, automatic salt.
BCrypt.hashpw(password, BCrypt.gensalt(12))
- Session Management: standard HttpSession with
HttpOnlycookies. - RBAC: Servo filter-based Role-Based Access Control (
UservsAdmin).
- SQL Injection: 100% usage of
PreparedStatementin all DAOs. - Input: Basic type validation at Servlet layer.
- CSRF: No token validation on POST requests.
- XSS: No output sanitization (OWASP Java HTML Sanitizer needed).
- HTTPS: Not enforced at app level (must be handled by proxy/server).
- Rate Limiting: None. Brute force possible on login.
- Audit Logs: Minimal. Admin actions are not persistently logged.
- File Uploads: Basic extension checks only. No malware scan.
If a breach is detected:
- Isolate the Tomcat instance.
- Rotate all DB passwords.
- Notify
emanuel@nettenz.com.