Skip to content

Insecure random string generator used for sensitive data

Moderate severity GitHub Reviewed Published Jan 3, 2024 in cubefs/cubefs • Updated Aug 7, 2024

Package

gomod github.com/cubefs/cubefs (Go)

Affected versions

< 3.3.1

Patched versions

3.3.1

Description

CubeFS used an insecure random string generator to generate user-specific, sensitive keys used to authenticate users in a CubeFS deployment. This could allow an attacker to predict and/or guess the generated string and impersonate a user thereby obtaining higher privileges.

When CubeFS creates new users, it creates a piece of sensitive information for the user called the “accessKey”. To create the "accesKey", CubeFS uses an insecure string generator which makes it easy to guess and thereby impersonate the created user.

An attacker could leverage the predictable random string generator and guess a users access key and impersonate the user to obtain higher privileges.

There is no evidence of this vulnerability being exploited in the wild. It was found during a security audit carried out by Ada Logics in collaboration with OSTIF and the CNCF.

The issue has been fixed in v3.3.1. There is no other mitigation than to upgrade.

References

@leonrayang leonrayang published to cubefs/cubefs Jan 3, 2024
Published to the GitHub Advisory Database Jan 3, 2024
Reviewed Jan 3, 2024
Published by the National Vulnerability Database Jan 3, 2024
Last updated Aug 7, 2024

Severity

Moderate

EPSS score

0.091%
(40th percentile)

Weaknesses

CVE ID

CVE-2023-46740

GHSA ID

GHSA-4248-p65p-hcrm

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.