Skip to content

[FIX] validateWebhookSignature possible timing attack#465

Draft
rajivnayanc wants to merge 1 commit intorazorpay:masterfrom
rajivnayanc:fix-timining-attack
Draft

[FIX] validateWebhookSignature possible timing attack#465
rajivnayanc wants to merge 1 commit intorazorpay:masterfrom
rajivnayanc:fix-timining-attack

Conversation

@rajivnayanc
Copy link
Copy Markdown

@rajivnayanc rajivnayanc commented Mar 29, 2026

validateWebhookSignature had simple === compare for signature matching - this could lead to timing attacks.
following what stripe does in it's extension - replicating crypto libraries timing safe equality operator.

Fixes: #462

@rajivnayanc rajivnayanc marked this pull request as draft March 29, 2026 10:01
@rajivnayanc rajivnayanc marked this pull request as ready for review March 29, 2026 10:07
@rajivnayanc
Copy link
Copy Markdown
Author

Not able to add any labels.
Existing tests verify the new changes - so no separate testing is required.

@rajivnayanc rajivnayanc marked this pull request as draft April 5, 2026 11:44
@rajivnayanc rajivnayanc closed this Apr 5, 2026
@rajivnayanc rajivnayanc reopened this Apr 5, 2026
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.

Possible timing attack in webhook signature verification method

1 participant