Incorrect validation of parties IDs leaks secret keys in Secret-sharing scheme in github.com/keep-network/keep-ecdsa

Summary

06/01/2022
CRITICAL
Yes i
Critical
Not published

GHSA-gp6j-vx54-5pmf: Incorrect validation of parties IDs leaks secret keys in Secret-sharing scheme. Affects github.com/keep-network/keep-ecdsa versions < 1.8.1. Fixed in 1.8.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

github.com/keep-network/keep-ecdsa is a Go package that implements a threshold signature scheme. It utilizes a secret-sharing scheme to divide secrets into shares. The package relies on the Verifiable Secret Sharing scheme to generate shares from user IDs. However, the package does not adequately validate these IDs, leading to potential security vulnerabilities.

Vulnerability Detail

The vulnerability arises from the improper validation of parties IDs in the secret-sharing procedure. When malicious IDs are used, other users may inadvertently reveal their secrets. Additionally, the lack of validation for modularly equal user IDs can cause nodes to crash during key generation or resharing. The issue stems from the failure to validate party IDs modulo the curve order, allowing an attacker to set their ID equal to the order of the elliptic curve and receive the secret key as their share.

How To Fix

Minimum fixed version

1.8.1

This is the first release that contains the fix.

go get github.com/keep-network/keep-ecdsa@v1.8.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

In conclusion, the incorrect validation of parties IDs in the secret-sharing scheme of github.com/keep-network/keep-ecdsa can lead to the leakage of secret keys and potential system crashes. It is crucial to update the dependency on binance-chain/tss-lib to the latest version to mitigate the vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for github.com/keep-network/keep-ecdsa →

Share this vulnerability

FAQ

The vulnerability can lead to the leakage of secret keys in the secret-sharing scheme, compromising the security and confidentiality of the system.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

The recommended fix is to update the dependency on binance-chain/tss-lib to the latest version, which includes the necessary fixes for the vulnerability.

No specific workarounds have been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/keep-network/keep-ecdsa.

How To Fix

Minimum fixed version

1.8.1

This is the first release that contains the fix.

go get github.com/keep-network/keep-ecdsa@v1.8.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback