Description
FastapiAdmin through 3.0 contains an authentication bypass vulnerability that allows unauthenticated attackers to obtain sessions for any user by abusing unprotected auto-login endpoints. Attackers can list users via /api/v1/auth/auto-login/users, mint a superuser auto-login token, and exchange it for a JWT session to gain full administrative control.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| fastapiadmin | FastapiAdmin | ≤ 3.0 | — |
References
- https://hackmd.io/@hieuPenguinnn/fastapiadmin-unauthenticated-autologin-and-hardcoded-jwt-secret third-party-advisory
- https://github.com/fastapiadmin/FastapiAdmin/blob/v3.0/backend/app/api/v1/module_system/auth/controller.py#L173-L251 technical-description
- VulnCheck Advisory: FastapiAdmin through 3.0 Authentication Bypass via Auto-Login Endpoints third-party-advisory