T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/authorize.py:34- Finding
Authorization scope and generic tool dispatcher exceed least privilege
- 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}, ) def main() -> int: parser = argparse.ArgumentParser(description="Call Beatra through Streamable HTTP") subparsers = parser.add_subparsers(dest="command", required=True) subparsers.add_parser("verify", help="Run the non-billable connection check") subparsers.add_parser("tools", help="List available Beatra tools") 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 cover review, public baseline lookup, image upload, image transformation/editing, model discovery, and task tracking. The authorization helper ...[truncated 2187 chars]- Remediation
View remediation
