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

[PW-6905] Fix for vulnerability to timing attack in hmac comparison #170

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

jillingk
Copy link
Contributor

Description
Instead of using the == comparison, we should use the hmac.compare_digest(merchant_sign_str, expected_sign) to compare the hmac signings.

Tested scenarios
Ran the unit tests.

Fixed issue:
#168

@michaelpaul michaelpaul merged commit 3292133 into develop Jul 13, 2022
@michaelpaul michaelpaul deleted the fix/vulnerabilityhmac branch July 13, 2022 09:49
@michaelpaul michaelpaul mentioned this pull request Jul 13, 2022
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.

3 participants