subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"method": "tools/call", "params": {"name": "fetch_api", "arguments": {"url": url, "method": "GET"}} }) r = subprocess.run([ "curl", "-s", "--max-time", "15", "-X", "POST", mcp_endpoint, "-H", f"Authorization: Bearer {api_key}", "-H", "Content-Type: application/json",- Confidence
- 93% confidence
- Finding
- r = subprocess.run([ "curl", "-s", "--max-time", "15", "-X", "POST", mcp_endpoint, "-H", f"Authorization: Bearer {api_key}", "-H", "Content-Type: application/json",
