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

A security issue in ECDSA verify. #11

Closed
shilohshi opened this issue Sep 22, 2022 · 1 comment
Closed

A security issue in ECDSA verify. #11

shilohshi opened this issue Sep 22, 2022 · 1 comment

Comments

@shilohshi
Copy link

Hi.

Recently I found a vulnerability in https://github.com/enumatech/secp256k1-js, the ecverify function does not check sig.r = sig.s = 0, which leads an attacker can construct a malicious signature (0, 0) that passes arbitrary checks. This is a classic attack method on ECDSA, more details can be seen at https://nakedsecurity.sophos.com/2022/04/20/critical-cryptographic-java-security-blunder-patched-update-now/.

Since I see there are also some other projects depend on this implementation, I think you might need to check and fix this vulnerability.

You can also contact me if you have any other question, best wishes.

@lionello
Copy link
Owner

@shilohshi Thanks for this! I've added tests and the necessary validations.

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

2 participants