Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make use of timing-safe functions to compare HMAC signatures #329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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