Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-52307— authentik allows a timing attack due to missing constant time comparison for metrics view

Quick assessment

Affected
goauthentik authentik
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

authentik是authentik开源的一个开源身份提供应用程序。 Authentik存在安全漏洞,该漏洞源于/-/metrics/端点使用了非恒定时间比较的问题,导致SECRET_KEY易被暴力破解。

AI Predicted 5.3 Difficulty: Moderate EPSS 0.55% · P45

Possible ATT&CK Techniques 1 AI

T1110 · Brute Force
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-52307

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
authentik allows a timing attack due to missing constant time comparison for metrics view
Source: CVE Program / CVE List V5
Vulnerability Description
authentik is an open-source identity provider. Due to the usage of a non-constant time comparison for the /-/metrics/ endpoint it was possible to brute-force the SECRET_KEY, which is used to authenticate the endpoint. The /-/metrics/ endpoint returns Prometheus metrics and is not intended to be accessed directly, as the Go proxy running in the authentik server container fetches data from this endpoint and serves it on a separate port (9300 by default), which can be scraped by Prometheus without being exposed publicly. authentik 2024.8.5 and 2024.10.3 fix this issue. Since the /-/metrics/ endpoint is not intended to be accessed publicly, requests to the endpoint can be blocked by the reverse proxy/load balancer used in conjunction with authentik.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
通过时间差异性导致的信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
authentik 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
authentik是authentik开源的一个开源身份提供应用程序。 Authentik存在安全漏洞,该漏洞源于/-/metrics/端点使用了非恒定时间比较的问题,导致SECRET_KEY易被暴力破解。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
goauthentik authentik < 2024.8.5 -

II. Public POCs for CVE-2024-52307

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-52307

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-52307 (1)

Same Patch Batch · goauthentik · 2024-11-21 · 3 CVEs total

CVE-2024-52287 authentik performs insufficient validation of OAuth scopes
CVE-2024-52289 authentik has an insecure default configuration for OAuth2 Redirect URIs

IV. Related Vulnerabilities

V. Comments for CVE-2024-52307

No comments yet


Leave a comment