FastapiAdmin through 3.0 Hard-Coded JWT Secret Privilege Escalation
FastapiAdmin
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| fastapiadmin FastapiAdmin |
| No fix yet |
Original description
FastapiAdmin through 3.0 contains a hard-coded JWT signing secret in backend/app/config/setting.py that allows low-privileged users to forge tokens impersonating the superuser. Attackers can register via the unauthenticated /api/v1/system/user/register endpoint, log in, and forge an HS256 token keeping their session_id but naming the superuser in user_name to gain superuser privileges.
From the CVE record · VulnCheck