Skip to main content
← All vulnerabilities
CVE-2024-21495GO-2024-2565GHSA-C7VF-M394-M4X4

Versions of the package github.com/greenpau/caddy-security before 1.0.42 are vulnerable to Insecure Randomness due to using an insecure rand

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.42
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a github.com/greenpau/caddy-security

    fixed in 1.0.42

  • github.com/greenpau/caddy-securityGo

    All versions

  • github.com/greenpau/caddy-securityGo

    through 1.0.42

References 4

security.snyk.io

GitHub · greenpau/go-authcrunch

blog.trailofbits.com

GitHub · greenpau/caddy-security