logo

CVE-2024-21495 github.com/greenpau/caddy-security

Package

Manager: go
Name: github.com/greenpau/caddy-security
Vulnerable Version: >=0 <=1.0.42

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00121 pctl0.31869

Details

Use of Insufficiently Random Values in github.com/greenpau/caddy-security Versions of the package github.com/greenpau/caddy-security before 1.0.42 are vulnerable to Insecure Randomness due to using an insecure random number generation library which could possibly be predicted via a brute-force search. Attackers could use the potentially predictable nonce value used for authentication purposes in the OAuth flow to conduct OAuth replay attacks. In addition, insecure randomness is used while generating multifactor authentication (MFA) secrets and creating API keys in the database package.

Metadata

Created: 2024-02-17T06:30:34Z
Modified: 2024-02-20T23:45:44Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-c7vf-m394-m4x4/GHSA-c7vf-m394-m4x4.json
CWE IDs: ["CWE-330"]
Alternative ID: GHSA-c7vf-m394-m4x4
Finding: F034
Auto approve: 1