Pydio Cells с 5.0.0 по 5.0.2 возвращает сведения об общей ссылке любому аутентифицированному пользователю. Обработчик REST для GET /a/share/link/{Uuid} в idm/share/rest/handler.go считывает UUID рабочей области из пути, вызывает LinkById и записывает результат без этапа авторизации, тогда как родственный обработчик для GET /a/share/cell/{Uuid} загружает рабочую область и требует MatchPolicies с ResourcePolicyAction_READ, возвращая необнаруженную ошибку, чтобы существование не разглашается. Дальше ничего не компенсирует: GetLinkWorkspace достигает GetOrCreateWorkspace, который выдает SearchWorkspace с запросом, не содержащим ResourcePolicyQuery, а ПодготовкаResourcePolicyQuery возвращает запрос без изменений, если это поле равно нулю, поэтому служба рабочей области не применяет фильтр политики. UUID рабочей области не является секретным, поскольку неаутентифицированная общедоступная страница, служащая для ссылки общего доступа, встраивает его как START_REPOSITORY.
Таким образом, любая учетная запись, имеющая стандартную роль пользователя, может отправить UUID и получить хэш ссылки и URL-адрес, идентификатор пользователя владельца, вход пользователя в скрытую общую папку, набор разрешений, ограничение и количество загрузок, целевых пользователей, срок действия и флаг необходимости пароля, в то время как прямое чтение общего узла из той же учетной записи отказано.
Показать оригинальное описание (EN)
Pydio Cells 5.0.0 through 5.0.2 returns share-link details to any authenticated user. The REST handler for GET /a/share/link/{Uuid} in idm/share/rest/handler.go reads the workspace UUID from the path, calls LinkById, and writes the result with no authorization step, whereas the sibling handler for GET /a/share/cell/{Uuid} loads the workspace and requires MatchPolicies with ResourcePolicyAction_READ, returning a not-found error so that existence is not disclosed. Nothing compensates further down: GetLinkWorkspace reaches GetOrCreateWorkspace, which issues SearchWorkspace with a query carrying no ResourcePolicyQuery, and PrepareResourcePolicyQuery returns the query unmodified when that field is nil, so the workspace service applies no policy filter. The workspace UUID is not secret, because the unauthenticated public page served for a share link embeds it as START_REPOSITORY. Any account holding a standard user role can therefore submit the UUID and receive the link hash and URL, the owner's user identifier, the hidden share user login, the permission set, the download limit and count, the target users, the expiry, and the password-required flag, while a direct read of the shared node from the same account is refused.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Pydio Cells
cpe:2.3:a:pydio:cells:*:*:*:*:*:*:*:*
|
5.0.0
|
<= 5.0.2
|