Платформа PraisonAI — это уровень платформы для системы многоагентных команд PraisonAI. До версии 0.1.4 сервер платформы предоставляет ресурсы в каталоге `/api/v1/workspaces/{workspace_id}/...` и защищает их с помощью зависимости `require_workspace_member(workspace_id)` от FastAPI. Зависимость только проверяет, является ли вызывающий объект членом workspace_id в префиксе URL-адреса.
Затем обработчики маршрутов ищут внутренний ресурс («agent_id», «issue_id», «project_id», «label_id», «comment_id», «dependent_id») только по первичному ключу. Собственный `workspace_id` ресурса никогда не сравнивается с `workspace_id` URL-адреса. Таким образом, пользователь может указать свое собственное рабочее пространство в префиксе URL-адреса и идентификатор ресурса любого другого рабочего пространства в пути.
Проверка аутентификации проходит, поскольку они действительно являются членами рабочей области префикса. Затем служба возвращает межклиентский ресурс для чтения, обновления или удаления. Существует вторая ошибка в маршрутах управления участниками («add_member», «update_member_role», «remove_member», «update_workspace», «delete_workspace»).
Каждый из них наследует значение по умолчанию min_role="member" от `require_workspace_member`. Таким образом, любой базовый участник может повысить себя до администратора или владельца, понизить в должности или удалить других участников, а также удалить рабочую область. Иерархия ролей существует в схеме, но не применяется.
Регистрация открыта по адресу `/api/v1/auth/register` без проверки электронной почты. Привязка сервера по умолчанию — `0.0.0.0:8000` (`python -m praisonai_platform`). Одного завитка из любой неаутентифицированной сетевой позиции достаточно для загрузки системы.
Версия 0.1.4 платформы PraisonAI устраняет эту проблему.
Показать оригинальное описание (EN)
PraisonAI Platform is the platform layer for the PraisonAI multi-agent teams system. Prior to version 0.1.4, the Platform server exposes resources under `/api/v1/workspaces/{workspace_id}/...` and protects them with a `require_workspace_member(workspace_id)` FastAPI dependency. The dependency only checks that the caller is a member of the workspace_id in the URL prefix. The route handlers then look up the inner resource (`agent_id`, `issue_id`, `project_id`, `label_id`, `comment_id`, `dependency_id`) by primary key alone. The resource's own `workspace_id` is never compared to the URL's `workspace_id`. A user can therefore put their own workspace in the URL prefix and any other workspace's resource ID in the path. The auth check passes, since they really are a member of the prefix workspace. The service then returns the cross-tenant resource for read, update, or delete. There is a second bug in the member-management routes (`add_member`, `update_member_role`, `remove_member`, `update_workspace`, `delete_workspace`). Each one inherits the default `min_role="member"` from `require_workspace_member`. Any basic member can therefore promote themselves to admin or owner, demote or remove other members, and delete the workspace. The role hierarchy exists in the schema but is not enforced. Registration is open at `/api/v1/auth/register` with no email verification. The default server bind is `0.0.0.0:8000` (`python -m praisonai_platform`). One curl from any unauthenticated network position is enough to bootstrap into the system. PraisonAI Platform version 0.1.4 patches the issue.
Характеристики атаки
Последствия
Строка CVSS v4.0