Ecosyste.ms: Advisories

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

Security Advisories: GSA_kwCzR0hTQS02Y3FqLTY5NjktcDU3eM4AAv-p

Lack of proper validation of server UUID can be used by the server to trick the client to accept invalid proofs

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:

Permalink: https://github.com/advisories/GHSA-6cqj-6969-p57x
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02Y3FqLTY5NjktcDU3eM4AAv-p
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 1 year ago
Updated: about 1 year ago


CVSS Score: 5.8
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N

Identifiers: GHSA-6cqj-6969-p57x, CVE-2022-39199
References: Repository: https://github.com/codenotary/immudb
Blast Radius: 9.2

Affected Packages

go:github.com/codenotary/immudb
Dependent packages: 28
Dependent repositories: 38
Downloads:
Affected Version Ranges: < 1.4.1
Fixed in: 1.4.1
All affected versions: 0.6.0, 0.6.1, 0.6.2, 0.7.0, 0.7.1, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1.0.5, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.3.0, 1.3.1, 1.3.2, 1.4.0
All unaffected versions: 1.4.1, 1.5.0