Отдельные механизмы Three позволяли веб-странице на несвязанном источнике считывать ответы, которые компоненты Storm's HTTP обслуживали аутентифицированному пользователю. The Logviewer reflected the request's `Origin` header back in `Access-Control-Allow-Origin` while also sending `Access-Control-Allow-Credentials: true`. The published security model documents a permissive `Access-Control-Allow-Origin: *` posture as accepted, which is safe precisely because browsers refuse to honour `*` together with credentials; reflecting the concrete origin removes that protection.
Общий фильтр CORS, используемый UI, Logviewer и DRPC, был настроен с именем заголовка ответа, где ожидалось имя параметра инициализации. Контейнер проигнорировал настройку и применил свои собственные по умолчанию, которые позволяют учетные данные. Наконец, UI и Logviewer заворачивали ответы API в обратный звонок JSONP для каждого запроса GET.
Элемент сценария любого происхождения может загрузить такой ответ, который полностью обходит политику одного и того же происхождения, а не согласовывает ее, и не было никакого способа отключить поведение. В каждом случае эффект заключается в том, что страница, посещенная аутентифицированным оператором, может считывать кластер, топологию и данные журнала от их имени. Смягчение от Upgrade до 3.1.0, где Logviewer больше не отражает происхождение запроса в ответе с подтверждением, фильтр CORS настраивается явно, и обертывание JSONP регулируется ui.enable.jsonp, что по умолчанию является ложным.
Обратите внимание, что отключение JSONP - это изменение поведения инструментария, которое передает параметр запроса callback; такой инструментарий должен быть перемещен в обычные запросы JSON. Пользователи, которые не могут обновиться сразу, должны поместить конечные точки UI, Logviewer и DRPC HTTP за обратным прокси-сервером, который удаляет Access-Control-Allow-Origin и Access-Control-Allow-Credentials из ответов и отклоняет запросы с параметром callback. Кредит The ASF — обнаружен с использованием агентов Claude для изучения безопасности проектов с открытым исходным кодом, подтвержденных и сообщенных Apache Storm.
Показать оригинальное описание (EN)
Description Three separate mechanisms allowed a web page on an unrelated origin to read responses that Storm's HTTP components served to an authenticated user. The Logviewer reflected the request's `Origin` header back in `Access-Control-Allow-Origin` while also sending `Access-Control-Allow-Credentials: true`. The published security model documents a permissive `Access-Control-Allow-Origin: *` posture as accepted, which is safe precisely because browsers refuse to honour `*` together with credentials; reflecting the concrete origin removes that protection. The shared CORS filter used by the UI, the Logviewer and DRPC was configured with a response header name where an initialisation parameter name was expected. The container ignored the setting and applied its own defaults, which allow credentials. Finally, the UI and Logviewer wrapped API responses in a caller-supplied JSONP callback for every GET request. A script element on any origin can load such a response, which bypasses the same-origin policy entirely rather than negotiating it, and there was no way to turn the behaviour off. In each case the effect is that a page visited by an authenticated operator can read cluster, topology and log data on their behalf. Mitigation Upgrade to 3.1.0, where the Logviewer no longer reflects the request origin in a credentialed response, the CORS filter is configured explicitly, and JSONP wrapping is governed by `ui.enable.jsonp`, which defaults to false. Note that disabling JSONP is a behaviour change for tooling that passes a `callback` query parameter; such tooling should be moved to ordinary JSON requests. Users who cannot upgrade immediately should place the UI, Logviewer and DRPC HTTP endpoints behind a reverse proxy that strips `Access-Control-Allow-Origin` and `Access-Control-Allow-Credentials` from responses and rejects requests carrying a `callback` parameter. Credit The ASF -- found using Claude agents to study the security of open-source projects, validated and reported by Apache Storm.
Характеристики атаки
Последствия
Строка CVSS v3.1