Anyone with an active OAuth app's client ID can stall the REST API by sending wrong client secrets
Description
The OAuth provider endpoints checked a calling application's client secret against a Scrypt hash synchronously on the REST API's event loop, holding it for tens of milliseconds per attempt. Anyone who knew the client ID of an active confidential OAuth application could stall the REST API for all users with a stream of requests carrying a wrong secret. Upgrade to v0.11.2 or later.
Impact
No account or token was needed: while the stream lasted, web app pages, AutoPilot chat and External API calls handled by the affected REST API process waited or timed out. Nothing was read or changed, running workflows continued, and deployments with no OAuth application registered were not affected.
Fix
Fixed in AutoGPT Platform v0.11.2.
Client secrets are now checked in a worker thread, so the REST API keeps serving other requests while a check runs.
Fix: #16685.
Fix evidence: 35ef5704a35e.
Upgrade to v0.11.2 or later. Version numbers in this advisory identify Platform releases, whose Git tags are autogpt-platform-beta-v<VERSION>, rather than the backend Python package version. The significantgravitas/autogpt Docker image is tagged v<VERSION>.
Workarounds
Deployments with no OAuth application registered are not exposed. Operators can rate-limit POST /api/oauth/token, /api/oauth/introspect and /api/oauth/revoke per client address at their reverse proxy.
---
Details
The OAuth provider endpoints POST /api/oauth/token, /api/oauth/introspect and /api/oauth/revoke authenticate the calling application by its client secret.
validate_client_credentialsinautogpt_platform/backend/backend/data/auth/oauth.pylooked the application up byclient_idand then calledOAuthApplicationInfoWithSecret.verify_secretdirectly on the event loop. Thetoken,introspectandrevokehandlers inautogpt_platform/backend/backend/api/features/oauth.pycalled it before anything else.verify_secretcalledAPIKeySmith.verify_key(autogpt_platform/autogpt_libs/autogpt_libs/api_key/keysmith.py), which derived a Scrypt hash (n=2**14, r=8, p=1: 16 MiB and roughly 30-40 ms of CPU) for any candidate that started withagpt_, whether or not it turned out to match.- An unknown or inactive
client_idwas rejected before hashing. Client IDs are random, but public by design: they appear in the authorization URL an integrating application sends its users to. - The OAuth routes had no rate limit, and each REST API process serves all its requests from one event loop, so about 30 such requests per second kept a process busy.
validate_api_keyinautogpt_platform/backend/backend/data/auth/api_key.pyalready ran the same Scrypt check in a worker thread.
A deployment with several REST API processes needed proportionally more requests, which were small and cheap to send. The gap was introduced in v0.6.41 by #11617 (commit 3dbc03e488).
References
- Fix: #16685, commit 35ef5704a35e, first released in v0.11.2
- Introduced by #11617
Timeline
Reported 2026-11-09 · Triaged 2026-11-09 · Fixed 2026-11-10 · Published pending.
Credits
This issue was initially discovered by Microsoft's Codename MDASH and validated by Dongkwan Kim and HyungSeok Han of Microsoft Security FORGE Lab.