Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1oMjRjLTZwNnAtbTN2eM4AA1oF

tss-lib leaks secret keys in response to incorrectly constructed Paillier moduli

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:

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

Permalink: https://github.com/advisories/GHSA-h24c-6p6p-m3vx
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oMjRjLTZwNnAtbTN2eM4AA1oF
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 8 months ago
Updated: 8 months ago


Identifiers: GHSA-h24c-6p6p-m3vx
References: Repository: https://github.com/threshold-network/tss-lib
Blast Radius: 0.0

Affected Packages

go:github.com/bnb-chain/tss-lib
Dependent packages: 12
Dependent repositories: 4
Downloads:
Affected Version Ranges: <= 1.3.5
No known fixed version
All affected versions: 1.0.0, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.5