dpgaspar/flask-appbuilder · Security
Flask-AppBuilder Has No Rate Limiting on Login AUTH DB
- GHSA ID
- GHSA-9hcr-9hcv-x6pv
- CVE ID
- CVE-2023-29005
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Description
Impact
Lack of rate limiting will allow an attacker to brute-force user credentials.
Patches
Ability to enable rate limiting on Flask-AppBuilder >= 4.3.0. Use AUTH_RATE_LIMITED = True and RATELIMIT_ENABLED = True set the limit itself by using AUTH_RATE_LIMIT. Will apply only to database authentication.
Workarounds
Implement rate limiting using a reverse proxy or other strategies.
CWEs
- CWE-307 · Improper Restriction of Excessive Authentication Attempts
References
- https://github.com/dpgaspar/Flask-AppBuilder/security/advisories/GHSA-9hcr-9hcv-x6pv ↗
- https://github.com/dpgaspar/Flask-AppBuilder/pull/1976 ↗
- https://flask-limiter.readthedocs.io/en/stable/configuration.html ↗
- https://github.com/dpgaspar/Flask-AppBuilder/releases/tag/v4.3.0 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2023-29005 ↗
- https://github.com/advisories/GHSA-9hcr-9hcv-x6pv ↗