GHSA-c7vf-m394-m4x4

Suggest an improvement
Source
https://github.com/advisories/GHSA-c7vf-m394-m4x4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-c7vf-m394-m4x4/GHSA-c7vf-m394-m4x4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c7vf-m394-m4x4
Aliases
Published
2024-02-17T06:30:34Z
Modified
2024-06-28T15:58:35.038291Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2024-02-17T05:15:09Z",
    "github_reviewed_at": "2024-02-20T23:45:44Z",
    "github_reviewed": true,
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-330"
    ]
}
References

Affected packages

Go / github.com/greenpau/caddy-security

Package

Name
github.com/greenpau/caddy-security
View open source insights on deps.dev
Purl
pkg:golang/github.com/greenpau/caddy-security

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.0.42