Ruff: Fix N805 #13437
Merged
Ruff: Fix N805 #13437
DryRunSecurity / General Security Analyzer
succeeded
Oct 16, 2025 in 51s
DryRun Security
Details
General Security Analyzer Findings: 1 detected
⚠️ Potential Authorization Bypass on Password Reset Flag dojo/models.py (click for details)
| Type | Potential Authorization Bypass on Password Reset Flag |
| Description | The enable_force_password_reset method, when called from the rate-limiting decorator in dojo/decorators.py, can be triggered by an unauthenticated attacker. By repeatedly attempting to log in with different valid usernames, an attacker can cause the rate limit to be hit for those users, thereby forcing them to reset their passwords. This constitutes a denial of service for legitimate users and an authorization bypass, as an attacker can force a security action on another user's account without proper authorization. |
| Filename | dojo/models.py |
| CodeLink | django-DefectDojo/dojo/models.py Lines 231 to 245 in e84f748 |
Loading