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

Weak Hash #493

Open
vlpetri opened this issue Jan 7, 2025 · 0 comments
Open

Weak Hash #493

vlpetri opened this issue Jan 7, 2025 · 0 comments

Comments

@vlpetri
Copy link

vlpetri commented Jan 7, 2025

When running vulnerability report in datadog the results show the following:
The application uses a hashing algorithm that does not meet today's generally accepted standards. Cryptography is difficult and there are many minor mistakes which can lead to a cryptosystem leaking information, or worse. Choosing a hashing algorithm that is known to be unsafe is a very common way to completely undermine security. Frequently, the use of a weak algorithm will allow credentials or data to be extracted.
It refers to SHA1 Hash function used in BuildCounterKey method:
using var algorithm = SHA1.Create();
var hash = algorithm.ComputeHash(bytes);
The suggested remediation to use SHA256 instead

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

No branches or pull requests

1 participant