Неправильные Encoding или Escaping уязвимости Output в ex-aws ex_aws_ses (модуль ExAws.SES) позволяет путь инъекции в Amazon SES V2 запрос URLs. Эта уязвимость связана с программным файлом lib/ex_aws/ses.ex и программными процедурами ExAws.SES.delete_contact_list/1, ExAws.SES.get_contact_list/1, ExAws.SES.update_contact_list/2, ExAws.SES.create_contact/3, ExAws.SES.get_contact/2, ExAws.SES.update_contact/3, ExAws.SES.delete_contact/2 и ExAws.SES.list_contacts/1. Функции контактного списка и контакта V2 интерполируют поставляемый абонентом list_name в путь запроса без URI-кодирования, в отличие от адреса электронной почты в тех же функциях, который передается через ExAws.Request.Url.uri_encode/1.
Приложение, которое пересылает ненадежный ввод в качестве имени списка контактов, позволяет злоумышленнику встраивать /, .. или ?, чтобы избежать предполагаемого сегмента путей списков контактов/<имя>. Значение, такое как x/../suppression/addresses/victim%40example.com, заставляет вызов delete_contact_list/1 поступать в список подавления по всему счету. Запрос по-прежнему подписывается собственными учетными данными AWS приложения и отправляется на настроенный хост SES, поэтому результатом является подделка запроса кросс-ресурса внутри собственной учетной записи AWS вызывающего абонента, а не произвольный SSRF.
Приложения, которые используют только жестко закодированные или строго проверенные имена списков, не затрагиваются. Эта проблема затрагивает ex_aws_ses: от 2.3.0 до 2.5.0.
Показать оригинальное описание (EN)
Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs. This vulnerability is associated with program file lib/ex_aws/ses.ex and program routines ExAws.SES.delete_contact_list/1, ExAws.SES.get_contact_list/1, ExAws.SES.update_contact_list/2, ExAws.SES.create_contact/3, ExAws.SES.get_contact/2, ExAws.SES.update_contact/3, ExAws.SES.delete_contact/2 and ExAws.SES.list_contacts/1. The V2 contact-list and contact functions interpolate the caller-supplied list_name into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uri_encode/1. An application that forwards untrusted input as a contact-list name lets an attacker embed /, .. or ? to escape the intended contact-lists/<name> path segment. A value such as x/../suppression/addresses/victim%40example.com makes a delete_contact_list/1 call arrive at the account-wide suppression list. The request is still signed with the application's own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller's own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected. This issue affects ex_aws_ses: from 2.3.0 before 2.5.0.
Характеристики атаки
Последствия
Строка CVSS v4.0