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

Use Plug.Crypto.secure_compare/2 to avoid timing attacks #59

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

jc00ke
Copy link
Contributor

@jc00ke jc00ke commented Jun 19, 2024

I was looking through your repo (super helpful!) and saw that your equality comparison is susceptible to timing attacks. Plug.Crypto.secure_compare/2 is probably what you want here.

@juulSme
Copy link
Contributor

juulSme commented Jun 19, 2024

Ouch 😣 that code hasnt been touched in a long time. Great catch! I’m currently on holiday, maybe my esteemed colleague @Reinder1213 can merge and release this one?

Copy link
Member

@Reinder1213 Reinder1213 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, indeed a nice catch!

@Reinder1213 Reinder1213 merged commit b88ff2d into weareyipyip:master Jun 20, 2024
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.

3 participants