Are you affected by GHSA-H24C-6P6P-M3VX?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)GHSA-H24C-6P6P-M3VX
tss-lib leaks secret keys in response to incorrectly constructed Paillier moduli
Overview
Description
Impact
The specification of the GG18 threshold ECDSA signature protocol contains a vulnerability allowing an attacker to recover the shared secret key. If a participant generates a Paillier modulus N containing small factors (less than 2^100) they can interact with other participants in the signing protocol to steal their secret key shares in as little as sixteen signing attempts. The master key can then be reconstructed from these shares.
Patches
The implementation of GG18 in tss-lib did not prove that N is biprime or that it doesn't contain small factors. The fixed implementation adds the following proofs from the CGGMP21 threshold ECDSA protocol to the key generation:
- Paillier-Blum Modulus (
Nis the product of two primes) - No Small Factor (both factors of
Nare greater than2^256)
These proofs apply to both the Paillier encryption modulus N, and the modulus NTilde used in MTA proofs.
To address the issue in the resharing protocol, an additional round has been added to the end so that participants can confirm that they received valid proofs.
References
Source: OX vulnerability database
Severity
CRITICAL
No CVSS vector in the source. Severity comes from the advisory.
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Go | github.com/bnb-chain/tss-lib | <=1.3.5 | No fix yet |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- eprint.iacr.org https://eprint.iacr.org/2019/114
- eprint.iacr.org https://eprint.iacr.org/2021/060
- github.com https://github.com/threshold-network/tss-lib
- github.com https://github.com/threshold-network/tss-lib/commit/2e712689cfbeefede15f95a0ec7112227d86f702
- github.com https://github.com/threshold-network/tss-lib/security/advisories/GHSA-h24c-6p6p-m3vx
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.