Skip to main content
Vulnerability Database/CVE-2024-10318

CVE-2024-10318: F5 Nginx API Connectivity Manager Auth Bypass

CVE-2024-10318 is a session fixation flaw in F5 Nginx API Connectivity Manager that enables attackers to fix victim sessions to attacker-controlled accounts. This article covers technical details, affected versions, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-10318 Overview

CVE-2024-10318 is a session fixation vulnerability in the NGINX OpenID Connect (OIDC) reference implementation. The flaw stems from the implementation failing to validate the nonce parameter at login time. An attacker can exploit this gap to bind a victim's browser session to an attacker-controlled identity account. While the attacker cannot authenticate as the victim, they can trick the victim into operating under the attacker's logged-in session, enabling data capture or account linking abuse. The issue is tracked under [CWE-384: Session Fixation] and affects several F5 NGINX products that rely on the reference OIDC code.

Critical Impact

An unauthenticated remote attacker can fixate a victim's session to an attacker-controlled OIDC account, leading to misuse of victim actions performed within that session.

Affected Products

  • F5 NGINX OpenID Connect reference implementation (NGINX Plus)
  • F5 NGINX Ingress Controller
  • F5 NGINX Instance Manager and NGINX API Connectivity Manager

Discovery Timeline

  • 2024-11-06 - CVE-2024-10318 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-10318

Vulnerability Analysis

The NGINX OIDC reference implementation acts as a relying party that redirects users to an identity provider and processes the returned authorization code and ID token. OpenID Connect requires the relying party to generate a nonce, send it in the authentication request, and later verify that the same value appears in the returned ID token. The affected implementation omits this verification at login time. Because the nonce is not bound to the user's browser session, an attacker can initiate a login flow, capture a valid authorization response, and deliver it to the victim. When the victim's browser completes the callback, the NGINX proxy accepts the response and establishes a session tied to the attacker's identity.

Root Cause

The root cause is a missing session integrity check during the OIDC callback handler. The reference NGINX JavaScript (njs) code validated the ID token signature but did not compare the nonce claim against a value stored in the user's pre-authentication session state. This omission removes the binding between the browser that started the authentication request and the browser that completes it, which is the exact scenario [CWE-384] is designed to prevent.

Attack Vector

Exploitation requires user interaction but no privileges. The attacker starts an OIDC login flow under their own account, intercepts the resulting authorization code or callback URL, and then lures the victim into visiting a crafted link that completes the flow in the victim's browser. The victim's session is now authenticated as the attacker. Any information the victim subsequently uploads, saves, or configures within the protected application is written to resources owned by the attacker's identity. Full technical remediation guidance is documented in the F5 Security Advisory K000148232.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2024-10318

Indicators of Compromise

  • Successful OIDC callback requests where the issued session cookie does not correlate with the originating client IP or user agent that began the authorization request.
  • Audit log entries showing the same identity provider subject (sub claim) authenticating from multiple disparate browser sessions within a short interval.
  • Application activity logs where a user's profile data suddenly appears under a different account owner.

Detection Strategies

  • Review NGINX access logs for /_codexch or OIDC callback endpoints receiving authorization codes from IPs that never issued the initial /authorize request.
  • Correlate identity provider sign-in events with NGINX session establishment events; mismatches between the IdP session actor and the NGINX session subject indicate fixation attempts.
  • Hunt for repeated use of the same authorization code or ID token across different source addresses.

Monitoring Recommendations

  • Enable verbose logging in the OIDC njs module to capture state and nonce values for post-incident analysis.
  • Forward NGINX and identity provider logs to a centralized analytics platform for cross-source correlation.
  • Alert on anomalous spikes in OIDC callback traffic that lack matching upstream /authorize requests from the same client.

How to Mitigate CVE-2024-10318

Immediate Actions Required

  • Update the NGINX OpenID Connect reference implementation to the patched version published in the F5 advisory.
  • For NGINX Ingress Controller, NGINX Instance Manager, and NGINX API Connectivity Manager deployments, apply the vendor-supplied updates that incorporate the fixed OIDC code.
  • Invalidate all active OIDC sessions and force reauthentication after patching to purge any pre-existing fixated sessions.

Patch Information

F5 has published remediation guidance in F5 Security Advisory K000148232. The fix adds verification of the nonce claim in the returned ID token against the value stored in the user's pre-login session state, restoring the session binding required by the OpenID Connect specification.

Workarounds

  • If immediate patching is not possible, modify the njs OIDC callback logic to generate, store, and verify a nonce value bound to the pre-authentication session cookie.
  • Shorten OIDC authorization code and session cookie lifetimes to reduce the window during which a fixated session can be delivered to a victim.
  • Require step-up authentication or multi-factor verification before any sensitive write operation within applications fronted by the affected NGINX configuration.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.