Skip to content

Conversation

@matical
Copy link
Contributor

@matical matical commented Jan 9, 2025

Basic string comparisons are not timing-safe for validating HMAC signatures. PHP has a built in function (hash_equals) that is timing-safe.

There are parts of the official Help Scout documentation that should be updated to make use of constant-time string comparisons for validating signatures.

https://developer.helpscout.com/webhooks/
https://developer.helpscout.com/apps/guides/signature-validation/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant