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 code scanning alert - Use of a broken or risky cryptographic algorithm - HMacSHA1 #650

Open
1 task
kwwall opened this issue Jan 10, 2022 · 2 comments
Open
1 task
Assignees

Comments

@kwwall
Copy link
Contributor

kwwall commented Jan 10, 2022

This is a false positive. SHA-1 is a risky algorithm, but not when it is used as an HMac. Need to report this to GitHub. Nothing to fix here, but recording an issue so I (@kwwall ) remember to report it against the code scanning software.

Tracking issue for:

@kwwall kwwall self-assigned this Jan 10, 2022
@kwwall
Copy link
Contributor Author

kwwall commented Sep 9, 2023

These references, which Anna-Katharina Wickert dug up after I mentioned a paper by
Bellare, Canetti & Krawczy, are a subsequent (and stronger) proof that the HMAC-SHA1 is still secure as long as the compression function hash (in this case SHA1) acts as a pseudo-random function, which it does:

  1. https://eprint.iacr.org/2006/043
  2. https://link.springer.com/chapter/10.1007/11818175_36

There are a log of downside to "fixing" this. Needs a bit further study since NIST still recommends ditching it, but I speculate that may have to do with Grover's quantum search algorithm in a PQC world.

However, as a result of these 2 papers (I only read their abstracts), I marked this CodeQL issue as a false positive and left a comment with the reference to these 2 Bellare papers.

@kwwall
Copy link
Contributor Author

kwwall commented Sep 9, 2023

@xeno6696 and @noloader - I'm leaning towards closing this and marking it as "Won't Fix" as I think it will cause more problems than it solves. (See the emails I sent to Anna.) What do you think?

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