Improper Encoding or Escaping of Output vulnerability in ex-aws exawsses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.
This vulnerability is associated with program file lib/exaws/ses.ex and program routines ExAws.SES.deletecontactlist/1, ExAws.SES.getcontactlist/1, ExAws.SES.updatecontactlist/2, ExAws.SES.createcontact/3, ExAws.SES.getcontact/2, ExAws.SES.updatecontact/3, ExAws.SES.deletecontact/2 and ExAws.SES.listcontacts/1.
The V2 contact-list and contact functions interpolate the caller-supplied listname into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uriencode/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 deletecontactlist/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 exawsses: from 2.3.0 before 2.5.0.
Improper Encoding or Escaping of Output vulnerability in ex-aws exawsses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.
This vulnerability is associated with program file lib/exaws/ses.ex and program routines ExAws.SES.deletecontactlist/1, ExAws.SES.getcontactlist/1, ExAws.SES.updatecontactlist/2, ExAws.SES.createcontact/3, ExAws.SES.getcontact/2, ExAws.SES.updatecontact/3, ExAws.SES.deletecontact/2 and ExAws.SES.listcontacts/1.
The V2 contact-list and contact functions interpolate the caller-supplied listname into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uriencode/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 deletecontactlist/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 exawsses: from 2.3.0 before 2.5.0.
Improper Encoding or Escaping of Output vulnerability in ex-aws exawsses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.
This vulnerability is associated with program file lib/exaws/ses.ex and program routines ExAws.SES.deletecontactlist/1, ExAws.SES.getcontactlist/1, ExAws.SES.updatecontactlist/2, ExAws.SES.createcontact/3, ExAws.SES.getcontact/2, ExAws.SES.updatecontact/3, ExAws.SES.deletecontact/2 and ExAws.SES.listcontacts/1.
The V2 contact-list and contact functions interpolate the caller-supplied listname into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uriencode/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 deletecontactlist/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 exawsses: from 2.3.0 before 2.5.0.