Advisory

GHSA-c7vf-m394-m4x4

Also known as: CVE-2024-21495, GO-2024-2565

Summary

Use of Insufficiently Random Values in github.com/greenpau/caddy-security

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-02-17 06:30 UTC
Modified
2024-06-28 15:58 UTC

Affected packages and fixes

github.com/greenpau/caddy-security

Go · All systems

Affected

  • introduced 0, last affected 1.0.42 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences