Executive Intelligence Brief
A critical vulnerability, CVE-2026-61628, has been discovered in nginx ignition that allows unauthenticated attackers to create admin accounts with full ReadWrite permissions. This is possible due to a TOCTOU (time-of-check to time-of-use) race condition in the onboarding process. The vulnerability is particularly severe as it can be exploited during the fresh deployment of an instance or if the onboarding state is reset. Organizations must immediately apply patches or mitigations to prevent unauthorized admin access.
Threat Overview
nginx ignition is affected by a vulnerability that allows unauthenticated creation of admin accounts. The affected endpoint is `POST /api/users/onboarding/finish`, which is registered as anonymous (unauthenticated). This endpoint creates a user with full ReadWrite admin permissions. The vulnerability arises from a check-then-act (TOCTOU) pattern between the 'onboarding already completed?' check and the user-creation write, with no atomic guard. This allows a remote unauthenticated attacker to create an administrator account for themselves and, through concurrent requests, create multiple admin accounts in a single race.
Technical Deep Dive
Vulnerability Classification
The vulnerability can be classified under CWE-362, Improper Synchronization, which occurs when multiple threads or processes access shared data without proper synchronization, leading to unpredictable behavior.
Root Cause Analysis
The root cause of this vulnerability is the lack of atomicity in the check-then-act sequence of the onboarding process. Specifically, the `OnboardingCompleted` check and the `Save` operation are not protected by a lock, transaction, or unique constraint. This gap allows multiple requests to pass the `alreadyFinished == false` check before any of them commits, resulting in multiple admin users being created.
Attack Vector & Chain
The attack vector involves sending a POST request to `/api/users/onboarding/finish` without authentication. The attack chain includes:
- Initial access: An unauthenticated attacker reaches the instance in its pre-onboarding state.
- Weaponization: The attacker sends a crafted POST request to `/api/users/onboarding/finish`.
- Delivery & Exploitation: The request is processed, creating an admin user due to the TOCTOU vulnerability.
- Post-Exploitation: The attacker receives a JWT for the new admin account and gains full control of the instance.
Exploitation Scenario Walkthrough
Scenario: Unauthenticated Admin Account Creation via Onboarding Race Condition
Reconnaissance: An attacker discovers that the target instance is in a pre-onboarding state, either through a fresh deployment or a reset of the onboarding state.
Weaponization: The attacker prepares a POST request to `/api/users/onboarding/finish` with a crafted JSON payload containing a desired username and password.
Delivery & Exploitation: The attacker sends multiple concurrent POST requests to `/api/users/onboarding/finish`. Due to the TOCTOU vulnerability, multiple admin accounts are created, each returning a valid admin JWT.
Post-Exploitation: The attacker uses the obtained JWT to gain full admin access to the instance, enabling them to create hosts/routes, edit global and per-route nginx configuration, manage access lists and certificates, and control the nginx server process.
Impact Realization: The attacker achieves unauthenticated administrative account takeover, leading to full control of the nginx-ignition instance and the nginx server it manages.
Exploitation in the Wild
The vulnerability is not actively exploited at the time of disclosure, but the likelihood of exploitation is high due to the severity of the vulnerability and the potential for unauthorized admin access.
Impact Analysis
Direct Impact
The direct impact of this vulnerability is the creation of unauthorized admin accounts with full ReadWrite permissions. This allows attackers to gain complete control over the nginx-ignition instance and the managed nginx server.
Downstream & Cascading Effects
The downstream effects include:
- Unauthenticated administrative account takeover.
- Full admin enables every downstream capability, including creating hosts/routes, editing global and per-route nginx configuration, managing access lists and certificates, and controlling the nginx server process.
- The TOCTOU race allows minting multiple admin accounts from a single concurrent burst, aiding persistence/stealth.
Affected Products & Versions
The specific affected versions are not provided in the source data. However, organizations should ensure they are running a patched version of nginx ignition.
Detection & Threat Hunting
Indicators of Compromise
Indicators of compromise may include:
- Unusual or multiple admin account creations.
- Login attempts with unknown or suspicious credentials.
- Changes to nginx configuration or access lists.
Detection Rules & Signatures
Detection logic may involve monitoring:
- POST requests to `/api/users/onboarding/finish` from unknown or unauthenticated sources.
- Creation of new admin accounts.
- Login attempts with newly created admin credentials.
Threat Hunting Queries
Threat hunting queries may include searching for:
- Unusual patterns of admin account creation.
- Multiple concurrent requests to `/api/users/onboarding/finish`.
- Anomalies in nginx server logs or access lists.
Remediation & Hardening
Immediate Actions (0-24 hours)
Organizations should:
- Apply patches or updates to nginx ignition to fix the TOCTOU vulnerability.
- Require authentication for the `/api/users/onboarding/finish` endpoint.
- Implement a one-time setup token for initial admin creation.
Short-Term Hardening (1-7 days)
Additional security controls include:
- Network segmentation to limit access to the onboarding endpoint.
- WAF rules to detect and prevent suspicious requests.
- Enhanced monitoring of nginx server logs and access lists.
Strategic Recommendations
Long-term recommendations include:
- Implementing atomicity in the onboarding process through database-level unique constraints or transactions.
- Enhancing authentication and authorization mechanisms for admin account creation.
- Regular security audits and penetration testing to identify similar vulnerabilities.
Analyst Assessment
The risk of this vulnerability is high due to its severity and the potential for unauthorized admin access. Organizations must prioritize patching or mitigating this vulnerability to prevent exploitation. The likelihood of exploitation is expected to increase as details of the vulnerability become more widely known.
Sources
- GitHub Security Advisories: GHSA-pxcx-fv34-x9p5