IO FinNet tss-lib vulnerable to timing attack from non-constant time scalar multiplication
Published 21 Apr 2023 · Updated 5 Feb 2025
Is your project on an affected github.com/bnb-chain/tss-lib?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <2.0.0
- Fixed in
- 2.0.0
go get github.com/bnb-chain/tss-lib@v2.0.0- Affected
- <2.0.0
- Fixed in
- 2.0.0
go get github.com/binance-chain/tss-lib@v2.0.0Details
io.finnet tss-lib before 2.0.0 can leak a secret key via a timing side-channel attack because it relies on the scalar-multiplication implementation in Go crypto/elliptic, which is not constant time (there is an if statement in a loop). One leak is in ecdsa/keygen/round_2.go. (bnb-chain/tss-lib and thorchain/tss are also affected.)
Is GHSA-3w84-4mjc-rjw7 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/bnb-chain/tss-lib, and gives you the command that fixes it.
More advisories for github.com/bnb-chain/tss-lib
- CriticalGHSA-h24c-6p6p-m3vxtss-lib leaks secret keys in response to incorrectly constructed Paillier moduli · 1 Sept 2023
- LowCVE-2023-26557Timing attack from non-constant time scalar arithmetic in github.com/bnb-chain/tss-lib · 11 Jul 2023
- LowCVE-2022-47931Collision of hash values in github.com/bnb-chain/tss-lib · 11 Jul 2023
- LowCVE-2022-47930Replay attacks involving proofs in github.com/bnb-chain/tss-lib · 11 Jul 2023
- HighCVE-2023-26557IO FinNet tss-lib vulnerable to timing attack from non-constant time scalar arithmetic · 21 Apr 2023
- MediumCVE-2022-47930IO FinNet tss-lib vulnerable to replay attacks involving proofs · 21 Apr 2023
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-26556
- Linkgithub.com/bnb-chain/tss-lib/issues/44
- Linkgithub.com/IoFinnet/tss-lib/releases/tag/v2.0.0
- Packagegithub.com/bnb-chain/tss-lib
- Linkgithub.com/bnb-chain/tss-lib/releases/tag/v2.0.0
- Linkgithub.com/bnb-chain/tss-lib/tree/v1.3.5
- Linkgitlab.com/thorchain/tss/tss-lib/-/tags/v0.1.3
- Linkmedium.com/@iofinnet/security-disclosure-for-ecdsa-and-eddsa-threshold-signature-schemes-4e969af7155b
- Linkpkg.go.dev/vuln/GO-2023-1732
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.