Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/bnb-chain/tss-lib
  4. ›
  5. GMS-2023-2159

GMS-2023-2159: tss-lib leaks secret keys in response to incorrectly constructed Paillier moduli

September 1, 2023

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 does not prove that N is biprime or that it does not contain small factors. The fixed implementation adds the following proofs from the CGGMP21 threshold ECDSA protocol to the key generation:

  • Paillier-Blum Modulus (N is the product of two primes)
  • No Small Factor (both factors of N are greater than 2^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

  • GG18
  • CGGMP21

References

  • eprint.iacr.org/2019/114
  • eprint.iacr.org/2021/060
  • github.com/advisories/GHSA-h24c-6p6p-m3vx
  • github.com/threshold-network/tss-lib/commit/2e712689cfbeefede15f95a0ec7112227d86f702
  • github.com/threshold-network/tss-lib/security/advisories/GHSA-h24c-6p6p-m3vx

Code Behaviors & Features

Detect and mitigate GMS-2023-2159 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.3.5

Solution

Unfortunately, there is no solution available yet.

Source file

go/github.com/bnb-chain/tss-lib/GMS-2023-2159.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:32 +0000.