-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Randomize hashes of strings (DoS vulnerability) #2817
Comments
An alternative is to use djb's crit-bit trees https://cr.yp.to/critbit.html From the "Putting crit-bit trees to work" section:
|
@spalladino This issue Ain't better in |
Granted. |
Crystal String.hash uses algorithm that vulnerable to hashDoS. Ruby and Rust uses Siphash. Perl 5.26 just released with good improvement:
|
No 1.0 unless it's fixed? |
Explanation, taken from Python
In the linked document, it can be seen that Ruby and many other programming languages had this vulnerability fixed.
A similar change should probably be introduced to Crystal.
The text was updated successfully, but these errors were encountered: