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

fix: use asynchronous hashing #478

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

fix: use asynchronous hashing #478

wants to merge 3 commits into from

Conversation

G3root
Copy link
Collaborator

@G3root G3root commented Aug 7, 2024

what this pr do

Copy link

github-actions bot commented Aug 7, 2024

Thank you for following the naming conventions for pull request titles! 🙏

@G3root G3root changed the title fix: use asynch fix: use asynchronous hashing Aug 7, 2024
@@ -48,19 +49,12 @@ async function authenticateWithAccessToken(

const accessToken = await findAccessToken(clientId, c);

if (!accessToken) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The early bailout is vulnerable to timing attacks because the attacker can verify whether the ID exists in the database based on the timing.

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