Skip to main content
Menu
Advisories

Anyone with an active OAuth app's client ID can stall the REST API by sending wrong client secrets

GHSA-FP4G-P7J5-V6PWPublished Updated GitHub

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_credentials in autogpt_platform/backend/backend/data/auth/oauth.py looked the application up by client_id and then called OAuthApplicationInfoWithSecret.verify_secret directly on the event loop. The token, introspect and revoke handlers in autogpt_platform/backend/backend/api/features/oauth.py called it before anything else.
  • verify_secret called APIKeySmith.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 with agpt_, whether or not it turned out to match.
  • An unknown or inactive client_id was 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_key in autogpt_platform/backend/backend/data/auth/api_key.py already 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

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.

References

GitHub · Significant-Gravitas/AutoGPT