Уязвимость Server-Side Request Forgery (SSRF в компоненте Apache Camel AS2. Эта проблема затрагивает Apache Camel: от 4.0.0 до 4.18.5, от 4.19.0 до 4.22.1. В протоколе AS2 отправитель сообщения может запросить, чтобы Message Disposition Notification был возвращен асинхронно на адрес поставок отправителя. camel-as2 взял этот адрес из входящего сообщения и использовал его в качестве пункта назначения для исходящего получения, не ограничивая его чем-либо, что было настроено развертыванием.
Поэтому удаленный партнер выбрал хост, к которому будет подключаться экземпляр Camel при доставке MDN. Это дает подделку запроса на стороне сервера с позиции получателя AS2, включая доступ к узлам, которые маршрутизируются только внутри сети развертывания, и где исходящее соединение несет учетные данные, настроенные для доставки MDN, эти учетные данные представляются выбранному злоумышленником месту назначения. Обновление до Apache Camel 4.23.0, которое исправляет проблему.
Пользователи потока релизов 4.18.x LTS должны обновиться до 4.18.5. Пользователи потока релизов 4.22.x LTS должны обновиться до 4.22.1. Асинхронное назначение MDN теперь ограничено, а не дословно взято из входящего сообщения.
Для развертываний, которые не могут быть немедленно обновлены, ограничьте исходящее подключение от приемника AS2 к конечным точкам партнера, на которые он законно доставляет квитанции, и не прикрепляйте учетные данные для доставки MDN, которые действительны для любого хоста, кроме этих партнеров.
Показать оригинальное описание (EN)
Server-Side Request Forgery (SSRF) vulnerability in Apache Camel AS2 component. This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1. In the AS2 protocol the sender of a message may request that the Message Disposition Notification be returned asynchronously to an address the sender supplies. camel-as2 took that address from the inbound message and used it as the destination for the outgoing receipt without constraining it to anything the deployment had configured. A remote partner therefore chose the host the Camel instance would connect to when delivering the MDN. That gives server-side request forgery from the position of the AS2 receiver, including reaching hosts that are only routable from inside the deployment's network, and where the outbound connection carries credentials configured for MDN delivery those credentials are presented to the attacker-chosen destination. Upgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. Users on the 4.22.x LTS releases stream should upgrade to 4.22.1. The asynchronous MDN destination is now constrained rather than taken verbatim from the inbound message. For deployments that cannot upgrade immediately, restrict outbound connectivity from the AS2 receiver to the partner endpoints it legitimately delivers receipts to, and do not attach credentials to MDN delivery that are valid for any host other than those partners.
Характеристики атаки
Последствия
Строка CVSS v3.1