[Mailer][Notifier] Harden Mailchimp signature comparison and Smsbox IP allowlist#64344
Merged
nicolas-grekas merged 1 commit intoMay 23, 2026
symfony:7.4symfony/symfony:7.4from
nicolas-grekas:harden-mailchimp-smsbox-webhook-7.4nicolas-grekas/symfony:harden-mailchimp-smsbox-webhook-7.4Copy head branch name to clipboard
Merged
[Mailer][Notifier] Harden Mailchimp signature comparison and Smsbox IP allowlist#64344nicolas-grekas merged 1 commit intosymfony:7.4symfony/symfony:7.4from nicolas-grekas:harden-mailchimp-smsbox-webhook-7.4nicolas-grekas/symfony:harden-mailchimp-smsbox-webhook-7.4Copy head branch name to clipboard
nicolas-grekas merged 1 commit into
symfony:7.4symfony/symfony:7.4from
nicolas-grekas:harden-mailchimp-smsbox-webhook-7.4nicolas-grekas/symfony:harden-mailchimp-smsbox-webhook-7.4Copy head branch name to clipboard
Conversation
…P allowlist * Mailchimp: use `hash_equals` instead of `!==` for the HMAC-SHA1 signature comparison (timing-safe) * Smsbox: expose `PROVIDER_IPS` as a public const and add an `$allowedIPs` constructor argument so the hardcoded SMSBox IP list can be overridden without subclassing
This was referenced May 27, 2026
Merged
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small hardenings spotted while reviewing the webhook parsers.
MailchimpRequestParser::validateSignature()compared the HMAC with!==, the only parser in the cluster doing the comparison non-constant-time. Swapped forhash_equals()to remove the timing side-channel. Both branches reject the same inputs, so no functional change.SmsboxRequestParser::getRequestMatcher()hardcoded the six provider IPs inside the method body with no override path. Added aPROVIDER_IPSpublic const and an$allowedIPsconstructor argument so operators can extend or replace the list without subclassing, mirroring the shape already used for Postmark. The default behavior is unchanged.