passkey implementation flawswebauthn auditrelying party security

    Passkey Audit of 103 Sites Exposes Relying Party Flaws

    A Ruhr University Bochum audit of 103 websites revealed vulnerabilities on every passkey deployment. Here is how CIAM teams must harden WebAuthn Relying Parties.

    Schutz IT 16 November 2026 6 min read

    Passkey Audit of 103 Sites Exposes Relying Party Flaws

    A landmark academic security audit conducted by researchers at Ruhr University Bochum has uncovered a stark reality for Customer Identity and Access Management (CIAM) architects: while the FIDO2/WebAuthn protocol remains mathematically sound, commercial deployments are riddled with implementation vulnerabilities.

    As reported by Digital Today, the research team evaluated 103 major websites operating active passkey support and identified at least one critical security flaw across every single tested domain. Among the 208 discrete passkey registration endpoints analyzed, only 71 sites (34%) enforced step-up verification when enrolling a new passkey onto an existing account. Furthermore, pervasive misconfigurations in domain scope validation and ceremony handling left consumer accounts vulnerable to credential planting, session fixation, and unauthorized token minting.

    For enterprise CISOs and identity architects, the Bochum study validates what practitioners have long cautioned: replacing shared secrets with public-key cryptography eliminates credential stuffing, but it shifts the attack surface directly onto Relying Party (RP) application logic.

    The Relying Party Gap: Protocol vs. Implementation

    The WebAuthn specification defines how an authenticator (such as an Apple Secure Enclave, Android Titan M2, or a dedicated YubiKey) negotiates cryptographic credentials with a browser (the client) and an application server (the Relying Party). The protocol guarantees origin binding, replay defense, and phishing resistance across the wire.

    However, WebAuthn purposely delegates user lifecycle management, session orchestration, and registration verification to the Relying Party. When application developers treat passkeys as a drop-in replacement for passwords without modifying surrounding CIAM workflows, fundamental architectural gaps emerge:

    • Unauthenticated Credential Enrollment: Users logged in via long-lived cookies can attach a passkey without re-entering primary authentication factors or completing step-up verification.
    • Broad Domain Scope Definitions: Overly permissive rpId parameters allow subdomains or third-party hosted widgets to request or assert authentication credentials intended for root domains.
    • Inadequate Attestation and Verification: Servers failing to strictly validate the WebAuthn clientDataJSON payload, leaving challenge replay and origin tampering unmonitored.
    • Symmetric Fallback Exploits: When passkey verification fails or is canceled, platforms automatically downgrade the session to insecure legacy recovery channels, such as SMS OTPs or unverified email magic links.

    The findings mirror broader concerns across the identity landscape. Attackers who cannot intercept asymmetric credentials in transit have pivoted toward attacking the ceremonies that bind keys to accounts, as highlighted in recent FIDO Alliance threat analyses.

    Anatomy of the Audit's Primary Failure Modes

    The Bochum audit highlights three systemic implementation flaws that modern CIAM teams must immediately review and remediate.

    1. Silent Passkey Injection and Credential Planting

    The most glaring flaw uncovered in the 103-site evaluation was the absence of step-up authentication during passkey binding. In 66% of the tested endpoints, an active authenticated session could add a passkey without requiring biometric re-verification, a password prompt, or a secondary out-of-band challenge.

    This failure enables catastrophic credential planting. If an adversary gains temporary session access—via cross-site scripting (XSS), an unexpired session on a shared terminal, or infostealer malware stealing session tokens—they cannot extract the victim's private key. Instead, they silently trigger a passkey registration ceremony using their own authenticator.

    Once the attacker's public key is enrolled against the victim's account, the adversary retains indefinite, phishing-resistant access that survives password resets and cookie revocations.

    2. Flawed Relying Party ID (rpId) Governance

    Under the WebAuthn standard, the rpId establishes the scope of authority for a passkey. An authenticator will refuse to create or exercise a credential for an origin whose effective domain does not match or descend from the rpId.

    The audit identified widespread misconfiguration of this boundary:

    // Example of an overly permissive Relying Party configuration
    {
      "challenge": "dGVzdC1jaGFsbGVuZ2UtaGFzaA==",
      "rp": {
        "name": "Global Retail Enterprise",
        "id": "example.com" // Allows any sub-tenant on *.example.com
      },
      "user": {
        "id": "VXNlci0xMjg5NA==",
        "name": "jane.doe@example.com",
        "displayName": "Jane Doe"
      }
    }
    

    By defining the rpId at the root domain (example.com) rather than scoping strictly to dedicated authentication subdomains (auth.example.com or id.example.com), enterprises permit auxiliary services, customer-support portals, or promotional microsites sharing the root domain to invoke WebAuthn ceremonies. An XSS vulnerability on an unmanaged marketing blog under promo.example.com can intercept challenge requests and orchestrate unauthorized credential ceremonies.

    3. Server-Side Challenge Validation Bypasses

    During both registration (navigator.credentials.create()) and authentication (navigator.credentials.get()), the server issues an unpredictable, cryptographically random challenge. The client hashes this challenge into clientDataJSON before the authenticator signs it.

    The researchers discovered that numerous commercial Relying Parties failed to perform basic validation checks on the server:

    • Challenge Reuse: Relying Parties stored challenges in stateless client tokens or failed to invalidate challenges immediately upon submission, permitting replay attempts within sliding session windows.
    • Origin Checking Gaps: Several backend implementations verified the cryptographic signature against the user's stored public key but omitted string validation of the origin field in clientDataJSON, completely negating WebAuthn’s native phishing resistance.
    • Type Confusion: Servers accepted registration responses (webauthn.create) within authentication endpoints (webauthn.get) due to lax type-checking in backend authentication handlers.

    Enterprise Remediation: Hardening WebAuthn Relying Parties

    Eliminating these vulnerabilities requires security teams to treat passkey ceremonies with the same rigor applied to cryptographic token-issuing endpoints.

    Mandate Strict Step-Up Policies for Credential Lifecycle Events

    Registering, modifying, or revoking a passkey is an administrative account action. CIAM architectures must never allow passkey enrollment on an existing account based solely on ambient session cookies.

    • Re-Authentication Gateways: Require a fresh primary authentication ceremony or a high-assurance secondary factor (such as an existing registered passkey or hardware security key) immediately prior to invoking navigator.credentials.create().
    • Out-of-Band Notifications: Transmit immediate, immutable notifications (via push alerts and verified email channels) whenever a new passkey is bound to an account identity, including device metadata and enrollment timestamps.
    • Cooldown Quarantines: Implement a provisional quarantine window for newly enrolled passkeys. If a passkey is enrolled from a novel IP address or device fingerprint, restrict high-risk operations (such as funds transfers or modifying security settings) for 24 to 48 hours unless validated out-of-band.

    Scope and Isolate Relying Party Domains

    Isolate authentication services from standard web properties. Restrict the rpId to dedicated, strictly governed hosts:

    • Avoid setting rpId to broad parent domains if untrusted or dynamic content executes on child domains.
    • Enforce strict Content Security Policy (CSP) headers on all pages handling authentication ceremonies, preventing third-party script injection from hijacking WebAuthn API calls.
    • Use isolated origins (such as dedicated authentication frames or subdomains) combined with Cross-Origin Opener Policy (COOP) and Cross-Origin Embedder Policy (COEP).

    Implement Rigorous Server-Side Ceremony Auditing

    Do not rely on third-party client-side SDKs to perform verification. Backend Relying Party libraries must execute all 19 verification steps specified in W3C WebAuthn Level 3.

    +-------------------------------------------------------------+
    |             Relying Party Verification Pipeline             |
    +-------------------------------------------------------------+
       1. Invalidate Challenge (Single-Use, TTL <= 120s)
       2. Base64URL-Decode clientDataJSON and authenticatorData
       3. Strict String Match: clientDataJSON.type === "webauthn.get"
       4. Strict Match: clientDataJSON.origin === "https://auth.org"
       5. Hash clientDataJSON and Compute SHA-256 Digest
       6. Verify authenticatorData.rpIdHash === SHA-256("auth.org")
       7. Verify User Present (UP) and User Verified (UV) Flags
       8. Verify Signature Against Stored Public Key
       9. Validate and Increment Signature Counter (Clone Detection)
    +-------------------------------------------------------------+
    

    Backend systems must reject any ceremony where the origin string does not exactly match the expected fully qualified domain, or where the rpIdHash does not match the SHA-256 hash of the intended Relying Party ID.

    Reassessing Consumer Passkey Governance

    The Ruhr University Bochum audit demonstrates that moving to passwordless authentication does not automatically eliminate identity risk. Cryptographic protocols can be mathematically flawless, but consumer protection depends entirely on the defensive perimeter constructed around the Relying Party.

    CIAM leaders must subject their WebAuthn endpoints to adversarial code reviews, penetration testing, and continuous configuration audits. By enforcing rigid step-up verification for enrollment, narrowing domain scopes, and strictly adhering to backend validation specifications, organizations can realize the genuine phishing-resistant promises of passkeys without leaving the backdoor open to implementation compromise.

    Keep reading