Fastapiadmin
Monthly
Privilege escalation in FastapiAdmin through version 3.0 allows any remote attacker who can reach the API to self-register a low-privileged account and then forge an HS256 JWT that impersonates the superuser, gaining full administrative control of the application. The flaw stems from a hard-coded JWT signing secret shipped in backend/app/config/setting.py (line 67), which lets an attacker sign arbitrary tokens while retaining their own valid session_id and simply setting user_name to the superuser; token validation in backend/app/core/dependencies.py (lines 72-112) trusts these forged claims. No user interaction, administrative access, or non-default configuration is required - only the ability to reach the registration endpoint and the API, which are present by default - and no public exploit code was identified at time of analysis, though a public technical writeup of the technique exists.
Unauthenticated attackers can obtain a valid JWT session for any account - including superusers - in FastapiAdmin through 3.0 by abusing auto-login endpoints that ship without authentication checks. The attack chain is straightforward: enumerate accounts via /api/v1/auth/auto-login/users, mint a superuser auto-login token, then exchange that token for a full JWT session granting complete administrative control of the application. Exploitation requires only network reachability to the admin API with no credentials, no user interaction, and no non-default configuration, and the referenced public writeup also notes a hardcoded JWT signing secret that further undercuts token-based defenses; no vendor-released patch was identified at time of analysis, and no public exploit code was confirmed.
FastApiAdmin up to 2.2.0 contains an unrestricted file upload vulnerability in the user avatar upload endpoint that allows authenticated remote attackers to upload arbitrary files. Public exploit code exists for this vulnerability, and no patch is currently available. An attacker with valid credentials could leverage this to compromise system integrity and potentially execute malicious code.
Unrestricted file upload in FastApiAdmin up to version 2.2.0 allows authenticated remote attackers to upload arbitrary files through the Scheduled Task API endpoint. Public exploit code exists for this vulnerability, enabling potential remote code execution or system compromise. Affected organizations should immediately upgrade beyond version 2.2.0 or implement access controls on the upload functionality until a patch is released.
FastApiAdmin versions up to 2.2.0 contain an unrestricted file upload vulnerability in the Scheduled Task API's upload controller that allows authenticated attackers to upload arbitrary files remotely. Public exploit code exists for this vulnerability, and no patch is currently available. An attacker with valid credentials could leverage this to achieve unauthorized file write access and potentially further compromise the application.
FastApiAdmin versions up to 2.2.0 contain an information disclosure vulnerability in the file download endpoint that allows authenticated attackers to read arbitrary files through path traversal manipulation. Public exploit code exists for this vulnerability, enabling remote exploitation by users with valid credentials. The vulnerability affects the download_controller function and currently has no available patch.
FastApiAdmin versions up to 2.2.0 expose sensitive information through the reset_api_docs function in the Custom Documentation Endpoint, allowing unauthenticated remote attackers to access confidential data. Public exploit code is available for this vulnerability, increasing the risk of active exploitation. No patch is currently available to remediate this issue.
Privilege escalation in FastapiAdmin through version 3.0 allows any remote attacker who can reach the API to self-register a low-privileged account and then forge an HS256 JWT that impersonates the superuser, gaining full administrative control of the application. The flaw stems from a hard-coded JWT signing secret shipped in backend/app/config/setting.py (line 67), which lets an attacker sign arbitrary tokens while retaining their own valid session_id and simply setting user_name to the superuser; token validation in backend/app/core/dependencies.py (lines 72-112) trusts these forged claims. No user interaction, administrative access, or non-default configuration is required - only the ability to reach the registration endpoint and the API, which are present by default - and no public exploit code was identified at time of analysis, though a public technical writeup of the technique exists.
Unauthenticated attackers can obtain a valid JWT session for any account - including superusers - in FastapiAdmin through 3.0 by abusing auto-login endpoints that ship without authentication checks. The attack chain is straightforward: enumerate accounts via /api/v1/auth/auto-login/users, mint a superuser auto-login token, then exchange that token for a full JWT session granting complete administrative control of the application. Exploitation requires only network reachability to the admin API with no credentials, no user interaction, and no non-default configuration, and the referenced public writeup also notes a hardcoded JWT signing secret that further undercuts token-based defenses; no vendor-released patch was identified at time of analysis, and no public exploit code was confirmed.
FastApiAdmin up to 2.2.0 contains an unrestricted file upload vulnerability in the user avatar upload endpoint that allows authenticated remote attackers to upload arbitrary files. Public exploit code exists for this vulnerability, and no patch is currently available. An attacker with valid credentials could leverage this to compromise system integrity and potentially execute malicious code.
Unrestricted file upload in FastApiAdmin up to version 2.2.0 allows authenticated remote attackers to upload arbitrary files through the Scheduled Task API endpoint. Public exploit code exists for this vulnerability, enabling potential remote code execution or system compromise. Affected organizations should immediately upgrade beyond version 2.2.0 or implement access controls on the upload functionality until a patch is released.
FastApiAdmin versions up to 2.2.0 contain an unrestricted file upload vulnerability in the Scheduled Task API's upload controller that allows authenticated attackers to upload arbitrary files remotely. Public exploit code exists for this vulnerability, and no patch is currently available. An attacker with valid credentials could leverage this to achieve unauthorized file write access and potentially further compromise the application.
FastApiAdmin versions up to 2.2.0 contain an information disclosure vulnerability in the file download endpoint that allows authenticated attackers to read arbitrary files through path traversal manipulation. Public exploit code exists for this vulnerability, enabling remote exploitation by users with valid credentials. The vulnerability affects the download_controller function and currently has no available patch.
FastApiAdmin versions up to 2.2.0 expose sensitive information through the reset_api_docs function in the Custom Documentation Endpoint, allowing unauthenticated remote attackers to access confidential data. Public exploit code is available for this vulnerability, increasing the risk of active exploitation. No patch is currently available to remediate this issue.