Improper Verification of Cryptographic Signature
The django_ses library implements a mail backend for Django using AWS Simple Email Service. The library exports the "SESEventWebhookView" class intended to receive signed requests from AWS to handle email bounces, subscriptions, etc. These requests are signed by AWS and are verified by django_ses, however, the verification of this signature was found to be flawed as it allowed users to specify arbitrary public certificates. This issue affects the versions prior to 3.5.0.
CWE-347 - Improper Verification of Cryptographic Signature
A cryptographic protocol is meant to ensure that services are provided in a secure manner. An application with absent or improper verification of cryptographic signatures allows malicious users to feed false messages to valid users or to disclose sensitive data, subverting the goals of the protocol. This can lead to security failures such as false authentication, account hijacking, and privilege escalation.