Skip to content

fix: harden eventsub signature verification#611

Merged
d-fischer merged 4 commits intotwurple:mainfrom
iProdigy:fix/eventsub-signature-comparison
Feb 3, 2025
Merged

fix: harden eventsub signature verification#611
d-fischer merged 4 commits intotwurple:mainfrom
iProdigy:fix/eventsub-signature-comparison

Conversation

@iProdigy
Copy link
Copy Markdown
Contributor

Type: Bugfix/Improvement

Force sha256 hmac to avoid algorithm downgrade and use timingSafeEqual to avoid timing attacks

Prevents notification forgery and secret key recovery (which would require node <17 or --openssl-legacy-provider for MD4 usage, and an extremely unrealistic number of http requests)

@d-fischer d-fischer changed the base branch from versions/7.2 to main February 3, 2025 15:08
@d-fischer d-fischer merged commit fce4117 into twurple:main Feb 3, 2025
@iProdigy iProdigy deleted the fix/eventsub-signature-comparison branch February 3, 2025 15:31
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