GitHub Advisoryadvisory · Go

GHSA-6cqj-6969-p57x Lack of proper validation of server UUID can be used by the server to trick the client to accept invalid proofs

MEDIUM Published 2022-11-21 Modified 2022-11-28 Official page ↗
Aliases
CVE-2022-39199
Ecosystem
Go
Packages
github.com/codenotary/immudb
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N
Weaknesses
CWE-345
Reviewed
2022-11-21

Affected packages

• Go github.com/codenotary/immudb: < 1.4.1 → fixed in 1.4.1

Description

Impact immudb client SDKs use server's UUID to distinguish between different server instance so that the client can connect to different immudb instances and keep the state for multiple servers. SDK does not validate this uuid and can accept any value reported by the server. A malicious server can change the reported UUID tricking the client to treat it as a different server thus accepting a state completely irrelevant to the one previously retrieved from the server. Patches The following Go SDK versions are not vulnerable: | SDK | Version | |-------|------------| | go | 1.4.1 | Workarounds When initializing an immudb client object, a custom state handler can be used to store the state. Providing custom implementation that ignores the server UUID can be used to ensure that even if the server changes the UUID, client will still consider it to be the same server. For more information If you have any questions or comments about this advisory: • Open a discussion in immudb Discussions • Email us at [email protected]

Related

Alias · CVE (1)

  • CVE-2022-39199 immudb is a database with built-in cryptographic proof and verification. vulnerability

Weakness · CWE (1)

  • CWE-345 Insufficient Verification of Data Authenticity weakness

References