Skip to content

Fix HMAC validation for Banking webhooks #1476

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

Merged
merged 3 commits into from
Mar 4, 2025
Merged

Conversation

gcatanese
Copy link
Contributor

The existing HMAC validation function validateBankingHMAC is incorrect as it inverts the parameters when calculating the signature.
This PR deprecates validateBankingHMAC and add a new function validateHMACSignature, together with comments/docs and unit testing.

@gcatanese gcatanese requested a review from a team as a code owner March 1, 2025 14:48
@gcatanese gcatanese force-pushed the hmac-validation-fix branch from 75a0941 to f82d250 Compare March 4, 2025 09:05
@gcatanese gcatanese closed this Mar 4, 2025
@gcatanese gcatanese reopened this Mar 4, 2025
Copy link

sonarqubecloud bot commented Mar 4, 2025

@gcatanese gcatanese merged commit 18d7461 into main Mar 4, 2025
13 checks passed
@gcatanese gcatanese deleted the hmac-validation-fix branch March 4, 2025 09:24
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.

2 participants