CVE-2024-21495

Published Feb 17, 2024 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0610 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.
Github GHSA Github GHSA GHSA-c7vf-m394-m4x4 Use of Insufficiently Random Values in github.com/greenpau/caddy-security
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 5, 2024, 1:47 PM
Reserved
Dec 22, 2023, 12:33 PM
Status
Analyzed
Published
Feb 17, 2024, 5:15 AM
Modified
Jun 17, 2026, 7:09 AM