Andrey Antukh a8a441b7ad 🐛 Verify AWS SNS signature on webhook notifications
The /webhooks/sns endpoint was accepting bounce and complaint
notifications without verifying the AWS SNS cryptographic signature.
This allowed any authenticated user to forge reports for arbitrary
email addresses using their own valid :profile-identity token.

The fix adds:
- AWS SNS signature verification using RSA-SHA1
- URL validation for SigningCertURL and SubscribeURL (must be from
  amazonaws.com domain)
- Proper logging of all verification failures with context fields
- Rejection of unverified messages before any processing

Closes #11092

AI-assisted-by: qwen3.7-plus
2026-08-05 12:38:46 +00:00
..
2026-07-31 18:53:05 +02:00
2024-05-29 19:05:04 +02:00