mcp-oauth
Pass
Audited by Gen Agent Trust Hub on Sep 1, 2026
Risk Level: SAFECREDENTIALS_UNSAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill uses a local callback server (
scripts/callback_server.js) that writes OAuth authorization codes and state parameters to/tmp/mcp_oauth_code.txtand/tmp/mcp_oauth_state.txt. On multi-user systems, the/tmpdirectory is often world-readable, which could allow other local users to intercept the authorization code before it is exchanged for a token. - [COMMAND_EXECUTION]: The authentication process relies on several host-level commands, including
curlfor network requests,nodefor executing local scripts and PKCE generation,openfor launching the system browser, andkill(vialsof) for process management. These commands provide the agent with significant execution capabilities on the host system. - [INDIRECT_PROMPT_INJECTION]: The skill exhibits an attack surface for indirect prompt injection through the ingestion of untrusted OAuth metadata from external servers.
- Ingestion points: Metadata is fetched from the user-provided
MCP_SERVER_URLand the discoveredAUTH_SERVERinSKILL.md(Steps 1 and 2). - Boundary markers: No delimiters or safety instructions are present to prevent the agent from misinterpreting embedded instructions within the remote metadata.
- Capability inventory: The agent uses
curl,node, andopenacrossSKILL.mdto process and act on the ingested data. - Sanitization: The skill extracts specific JSON fields but interpolates them directly into shell commands and URLs without additional validation or sanitization.
Audit Metadata