GHSA-6cqj-6969-p57x

Suggest an improvement
Source
https://github.com/advisories/GHSA-6cqj-6969-p57x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-6cqj-6969-p57x/GHSA-6cqj-6969-p57x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6cqj-6969-p57x
Aliases
Related
Published
2022-11-21T20:38:51Z
Modified
2023-11-08T04:10:14.687054Z
Severity
  • 5.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N CVSS Calculator
Summary
Lack of proper validation of server UUID can be used by the server to trick the client to accept invalid proofs
Details

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:

Database specific
{
    "nvd_published_at": "2022-11-22T20:15:00Z",
    "github_reviewed_at": "2022-11-21T20:38:51Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-345"
    ]
}
References

Affected packages

Go / github.com/codenotary/immudb

Package

Name
github.com/codenotary/immudb
View open source insights on deps.dev
Purl
pkg:golang/github.com/codenotary/immudb

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.4.1