Summary
AutoGPT versions 0.6.63 through 0.10.0 allow an external API key or OAuth token with only EXECUTE_BLOCK permission to run AutoPilotBlock and receive a full, unattended AutoPilot turn. This can expose the account owner's stored credentials, library agents, and workspace files, and allow use of AutoPilot's sandboxed shell beyond the access intended for that permission.
Affected context
The issue affects AutoGPT's external API authorization path for AutoPilotBlock in versions 0.6.63 through 0.10.0. It is relevant when a caller has an API key or OAuth token limited to EXECUTE_BLOCK and the associated account has resources, such as third-party credentials, library agents, or workspace files, available to AutoPilot.
Exploit preconditions
- Attack surface: AutoGPT's external API endpoint for running AutoPilotBlock
- Required access: An API key or OAuth token with
EXECUTE_BLOCKpermission - Trigger point: A request that invokes AutoPilotBlock through the external API
- Why exploitation is possible: The authorization boundary permits a limited-permission caller to start a full, unattended AutoPilot turn, which can use account resources and capabilities not directly permitted to that key
Why this happens
The authorization check does not adequately constrain the capabilities available through AutoPilotBlock. As a result, a permission intended for block execution can reach a broader workflow that uses the account owner's resources. This is an incorrect authorization condition (CWE-863) and reflects improper privilege management (CWE-270): the effective privileges of the operation exceed those granted to the caller.
Potential impact
- A caller may use the account owner's stored third-party credentials through AutoPilot.
- A caller could access or use library agents and workspace files available to the account.
- A caller may run AutoPilot's sandboxed shell as part of an unattended turn.
- The account owner's connected services or data could be exposed or affected.
General mitigation guidance
Defensive patterns include enforcing authorization at the point each sensitive capability or resource is accessed, rather than relying only on permission to start a broader workflow. Keep workflow execution scoped to the caller's granted privileges, use explicit capability allowlists, and avoid automatically inheriting owner credentials or workspace access. Apply least privilege to tokens and integrations, and require appropriate validation or approval for unattended actions.
How teams detect issues like this
Review authorization checks on external API routes that launch multi-step workflows, especially where a narrow permission can invoke operations with broader capabilities. Look for gaps between a token's declared scope and the resources or tools available during execution. Audit logs for AutoPilotBlock calls made with EXECUTE_BLOCK-only credentials, and use static analysis, code review, or policy checks to flag privilege expansion across API and workflow boundaries.

