GHSA-qxqc-27pr-wgc8

Suggest an improvement
Source
https://github.com/advisories/GHSA-qxqc-27pr-wgc8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/08/GHSA-qxqc-27pr-wgc8/GHSA-qxqc-27pr-wgc8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qxqc-27pr-wgc8
Aliases
Published
2024-08-22T16:39:25Z
Modified
2024-08-30T17:42:39.342586Z
Severity
  • 8.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:H CVSS Calculator
  • 9.1 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:H/SI:N/SA:H CVSS Calculator
Summary
GoAuthentik vulnerable to Insufficient Authorization for several API endpoints
Details

Summary

Several API endpoints can be accessed by users without correct authentication/authorization.

The main API endpoints affected by this:

  • /api/v3/crypto/certificatekeypairs/<uuid>/view_certificate/
  • /api/v3/crypto/certificatekeypairs/<uuid>/view_private_key/
  • /api/v3/.../used_by/

Note that all of the affected API endpoints require the knowledge of the ID of an object, which especially for certificates is not accessible to an unprivileged user. Additionally the IDs for most objects are UUIDv4, meaning they are not easily guessable/enumerable.

Patches

authentik 2024.4.4, 2024.6.4 and 2024.8.0 fix this issue.

Workarounds

Access to the API endpoints can be blocked at a Reverse-proxy/Load balancer level to prevent this issue from being exploited.

For more information

If you have any questions or comments about this advisory:

References

Affected packages

Go / goauthentik.io

Package

Name
goauthentik.io
View open source insights on deps.dev
Purl
pkg:golang/goauthentik.io

Affected ranges

Type
SEMVER
Events
Introduced
2024.6.0-rc1
Fixed
2024.6.4

Go / goauthentik.io

Package

Name
goauthentik.io
View open source insights on deps.dev
Purl
pkg:golang/goauthentik.io

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2024.4.4