Ecosyste.ms: Advisories

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

Security Advisories: GSA_kwCzR0hTQS12NDI3LWM0OWotOHc2eM4AA3VI

Cleartext Storage of Sensitive Information in HMAC SHA256 Authentication

Impact

secretKey, an important key for HMAC SHA256 authentication, was stored in the database in raw form.

If a malicious person somehow had access to the data in the database, they could use the key and secretKey for HMAC SHA256 authentication to send requests impersonating that person.

Patches

Upgrade to Shield v1.0.0-beta.8 or later.

After upgrading, all existing secret keys must be encrypted.
See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details.

Workarounds

None.

References

For more information

If you have any questions or comments about this advisory:

Permalink: https://github.com/advisories/GHSA-v427-c49j-8w6x
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12NDI3LWM0OWotOHc2eM4AA3VI
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 1 year ago
Updated: about 1 year ago


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

Identifiers: GHSA-v427-c49j-8w6x, CVE-2023-48707
References: Repository: https://github.com/codeigniter4/shield
Blast Radius: 7.7

Affected Packages

packagist:codeigniter4/shield
Dependent packages: 10
Dependent repositories: 35
Downloads: 176,181 total
Affected Version Ranges: < 1.0.0-beta.8
Fixed in: 1.0.0-beta.8
All affected versions: 1.0.0-beta, 1.0.0-beta.2, 1.0.0-beta.3, 1.0.0-beta.4, 1.0.0-beta.5, 1.0.0-beta.6, 1.0.0-beta.7
All unaffected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0