T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/authorize.py:32- Finding
Overprivileged Shared Credential and Unrestricted MCP 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}, ) ``` ### Technical Analysis The declared functionality is generation of instrumental background music. Its minimum necessary permissions would ordinarily include music model discovery, music generation, optional reference-audio upload, task status reads, artifact reads, and user-requested task cancellation. Instead, the authorization request includes unrelated capabilities for: - Image generation - Video generation - Speech generation - Voice reading and writing - General artifact writing - Wallet spending - Broad MCP tool access The bearer credential is shared among Beatra Skill packages and is loaded automatically from `~/.beatra/credentials.json`. The l ...[truncated 2101 chars]- Remediation
View remediation
