Skip to content

Reject malformed CoinPay webhook signatures#41

Open
Autowebassat-blip wants to merge 2 commits into
profullstack:masterfrom
Autowebassat-blip:fix-coinpay-webhook-hex-signature
Open

Reject malformed CoinPay webhook signatures#41
Autowebassat-blip wants to merge 2 commits into
profullstack:masterfrom
Autowebassat-blip:fix-coinpay-webhook-hex-signature

Conversation

@Autowebassat-blip

Copy link
Copy Markdown
Contributor

Fixes a CoinPay webhook validation edge case where malformed hex signatures with an extra nibble could be decoded to the same bytes by Buffer.from.

Adds a contract test that rejects a signed webhook when the signature has an extra hex character.

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