Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secret key check allows for timing attacks #10

Open
TimDaub opened this issue Oct 25, 2021 · 0 comments · May be fixed by #11
Open

Secret key check allows for timing attacks #10

TimDaub opened this issue Oct 25, 2021 · 0 comments · May be fixed by #11

Comments

@TimDaub
Copy link

TimDaub commented Oct 25, 2021

timing attack
Line:

event.secret_key && event.secret_key === secret_key ? true : false;

I recommend using: https://nodejs.org/api/crypto.html#cryptotimingsafeequala-b

@TimDaub TimDaub linked a pull request Oct 25, 2021 that will close this issue
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 a pull request may close this issue.

1 participant