Живой компонент, защищенный [IsGranted], по своему классу или по своему действию по умолчанию, может быть отображен вызывающим абонентом, которому не предоставлен доступ. POST /_components/name/_batch обрабатывается SymfonyUXLiveComponentControllerBatchActionController, который не имеет атрибутов контроллера: атрибуты компонента проверяются только подзапросом, выданным для каждого действия. С пустым списком действий субзапрос не выдавался, а гидратированный компонент отображался и возвращался с 200. Звонящий нуждается в действительной подписанной реквизитной полезной нагрузке для компонента, такой как data-live-props-value страницы, которая его отображала: та, которую звонящий мог увидеть до потери доступа, или кэшированная или общая страница.
Контрольная сумма связывает реквизиты с именем компонента, а не с пользователем, сессией или временем, поэтому такую полезную нагрузку можно воспроизвести. Действия не затрагиваются, так как каждое действие непустой партии по-прежнему проверяется в собственном подзапросе. Компоненты, которые загружают данные из своих реквизитов, такие как идентификатор объекта, раскрывают эти данные вызывающему абоненту. BatchActionController теперь отклоняет партию без каких-либо действий с BadRequestHttpException.
Клиент JavaScript никогда не отправляет такой запрос: он использует URL компонента, когда нет действия, /action для одного и /_batch для двух или более.
Показать оригинальное описание (EN)
A live component protected by #[IsGranted], on its class or on its default action, can be rendered by a caller who is not granted access. POST /_components/{name}/_batch is handled by Symfony\UX\LiveComponent\Controller\BatchActionController, which has no controller attributes: the attributes of the component are only checked by the sub-request issued for each action. With an empty actions list, no sub-request was issued, and the hydrated component was rendered and returned with a 200. The caller needs a valid signed props payload for the component, such as the data-live-props-value of a page that rendered it: one the caller could see before losing access, or a cached or shared page. The checksum binds the props to the component name, not to a user, a session or a time, so such a payload can be replayed. Actions are not affected, since each action of a non-empty batch is still checked in its own sub-request. Components that load data from their props, like an entity identifier, disclose that data to the caller. BatchActionController now rejects a batch without any action with a BadRequestHttpException. The JavaScript client never sends such a request: it uses the URL of the component when there is no action, /{action} for a single one and /_batch for two or more.
Характеристики атаки
Последствия
Строка CVSS v4.0