Server-side Request Forgery (SSRF) Affecting django-ses package, versions [,3.5.0)


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.05% (19th percentile)
Expand this section
NVD
5.4 medium

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

How 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.