feat: reject common passwords in SetupRequest
- Add ~75 common plaintext passwords to setup.py validator - Check case-insensitively; passes complexity but blocked - Add tests: reject common, accept unique, short common fail on length - Update Security.md docs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -88,6 +88,7 @@ See `backend/app/middleware/csrf.py` and `backend/app/middleware/rate_limit.py`
|
||||
- Passwords are hashed with SHA256 on the frontend before transmission
|
||||
- The backend never stores plain-text passwords
|
||||
- See `backend/app/services/auth.py` for authentication implementation
|
||||
- **Common password prevention:** The setup validator rejects a list of ~75 common plaintext passwords that pass structural complexity checks (e.g., `Password1!`). The list is embedded in `backend/app/models/setup.py` and is checked case-insensitively.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user