T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/authorize.py:34- Finding
Overprivileged Device Token and Unrestricted Remote Tool Dispatch
- Content
View full analysis
dict[str, Any]: session = _session_with_registration( state_dir=Path.home() / ".beatra", post_json=_default_post_json, ) if command == "tools": return session.request(2, "tools/list", {}) try: arguments = json.load(os.sys.stdin) except json.JSONDecodeError as exc: raise RuntimeError("Tool arguments on stdin must be one JSON object") from exc if not isinstance(arguments, dict): raise RuntimeError("Tool arguments on stdin must be one JSON object") assert tool_name is not None return session.request( 2, "tools/call", {"name": tool_name, "arguments": arguments}, ) ``` ```python call = subparsers.add_parser("call", help="Call one tool with a JSON object on stdin") call.add_argument("tool_name") ``` ### Technical Analysis The declared Skill functionality is the creation and editing of RFP-cover still images. The requested authorization nevertheless includes video generation, music generation, speech generation, voice read/write, general artifact write/read, wallet spending, task reading, and task cancellation. The bundled client compounds the excessive scope by accepting an arbitrary `tool_name` from the command line and forwarding it directly to the remote MCP endpoint. It does not enforce a package-level allowlist of the tools required for the RFP workflow. The server may independently enforce authorization a ...[truncated 1292 chars]- Remediation
View remediation
