Skip to content

fix(webhook): reject null or empty secret, body, or signature in VerifySignature - #122

Draft
tbarbugli wants to merge 2 commits into
masterfrom
tommaso/sec-2519-webhook-verify-guards
Draft

tbarbugli wants to merge 2 commits into
masterfrom
tommaso/sec-2519-webhook-verify-guards

Conversation

@tbarbugli

@tbarbugli tbarbugli commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Linear: SEC-2519, SEC-2530

Summary

  • Return false early in Webhook.VerifySignature when body, signature, or secret is null or empty (instead of computing HMAC over an empty key or throwing ArgumentNullException on null signature).
  • Add unit tests in tests/WebhookEmptySecretTests.cs.

Testing

  • Opened as draft for CI to run make test on .NET 8/9.

This branch has not been deployed

No deployments
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