The skill is critically insecure, enabling SSRF via unvalidated URL parameters, allowing remote code execution through unpinned dependencies, and lacking necessary security constraints on its network and tool access.
Findings (12)
Content Injection
Hightargets Perception
The `negotiateCapabilities()` function fetches an attacker-controlled URL (`platform_profile_url`) and parses its JSON to determine active capabilities and version. An attacker hosting a malicious profile can manipulate capability negotiation outcomes or inject unexpected data into the checkout session flow.
const platformProfile = await response.json(); const platformCapabilities = new Set(platformProfile.ucp?.capabilities?.map((c: { name: string }) => c.name) || []);The skill automatically clones and uses external content from a GitHub repository as a source for implementation logic, which could be manipulated to inject malicious code or instructions into the agent's workflow.
git clone --depth 1 https://github.com/Universal-Commerce-Protocol/ucp.git .ucp-spec
Semantic Manipulation
Mediumtargets Reasoning
Because `platform_profile_url` is accepted as optional input in MCP tool calls, a compromised or prompt-injected agent invocation can supply an attacker-controlled profile URL to silently alter which UCP capabilities are negotiated and active, bypassing the business's configured capability set without user awareness.
platform_profile_url: z.string().url().optional().describe('URL to the platform UCP profile for capability negotiation') ... const negotiation = await negotiateCapabilities(platform_profile_url);Behavioural Control
Hightargets Action
Every MCP tool exposes `platform_profile_url` as an agent-controllable string parameter that flows directly into a server-side `fetch()` call with no host allowlist. This enables SSRF to internal services or cloud metadata endpoints (e.g., AWS IMDS at 169.254.169.254) from the Next.js server.
platform_profile_url: z.string().url().optional() ... const response = await fetch(platformProfileUrl, { headers: { Accept: 'application/json' } });User input is used to construct a URL for a server-side HTTP request. This could allow an attacker to make requests to internal services or cloud metadata endpoints (Server-Side Request Forgery). Validate URLs against an allowlist of permitted hosts and schemes.
taint source (line 7): process.argv[2] → sink: fetch(`${deploymentUrl}/api/mcp`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'tools/call',
params: {
name: 'ucp_get_profile',
arguments: {},
},
}),
})Untrusted data flows to an external API call without validation. Data from sources like window.name, document.location, or other client-controlled inputs is passed to library functions that may interpret it in unsafe ways. Validate or sanitize all untrusted input before passing it to external APIs.
taint source (line 7): process.argv[2] → sink: fetch(`${deploymentUrl}/api/mcp`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'tools/call',
params: {
name: 'ucp_get_profile',
arguments: {},
},
}),
})The skill instructs the agent to install packages without version pinning (e.g., 'npm install zod jose uuid'), which exposes the project to supply chain attacks if a dependency is compromised.
npm install zod jose uuid
Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.
Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.
The scaffold instructs installation of `mcp-handler` without a version pin (`npm install mcp-handler`), while the MCP SDK is pinned. The unpinned package resolves at install time and can deliver different code between runs if the package is compromised or updated maliciously.
npm install mcp-handler @modelcontextprotocol/sdk@1.25.2 zod
Hygiene
Infotargets Packaging & Manifest
Skill does not specify a license field. Specifying a license helps users understand usage terms.
Skill description is empty or too short. A clear description helps users evaluate the skill's purpose.