mirror of
https://github.com/Sh4yy/cloudflare-email.git
synced 2026-04-27 02:45:52 +03:00
[GH-ISSUE #14] Use constant time equality check for auth token #7
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare-email#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pethin on GitHub (Feb 18, 2024).
Original GitHub issue: https://github.com/Sh4yy/cloudflare-email/issues/14
Replace
===withcrypto.subtle.timingSafeEqualin https://github.com/Sh4yy/cloudflare-email/blob/main/src/middlewares/auth.ts#L16 to prevent timing attacks.Example: https://developers.cloudflare.com/workers/examples/protect-against-timing-attacks/
@D3vl0per commented on GitHub (Apr 26, 2024):
Like this @pethin https://github.com/D3vl0per/cloudflare-email/blob/main/src/middlewares/auth.ts?
@taciturnaxolotl commented on GitHub (Apr 28, 2024):
Can you create a PR @D3vl0per?
@D3vl0per commented on GitHub (Apr 28, 2024):
Done #18 @kcoderhtml !
@taciturnaxolotl commented on GitHub (Apr 28, 2024):
thnks! hopefully @Sh4yy can merge both our PRs soon!