Server-side Request Forgery (SSRF) Affecting django-ses package, versions [,3.5.0)
Snyk CVSS
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-DJANGOSES-5595562
- published 23 May 2023
- disclosed 22 May 2023
- credit Joseph Surin
Introduced: 22 May 2023
New CVE-2023-33185 Open this link in a new tabHow to fix?
Upgrade django-ses
to version 3.5.0 or higher.
Overview
django-ses is an A Django email backend for Amazon's Simple Email Service
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) due to insufficient signature verification in django-ses. Requests to SESEventWebhookView
iare signed by AWS and are verified by django_ses, but the verification step allows users to specify arbitrary public certificates on subdomains of amazonaws.com
and amazon.com
.
Workaround
This vulnerability can be avoided by setting AWS_SNS_EVENT_CERT_TRUSTED_DOMAINS
to domains or subdomains entirely in the user's control.