Jun 19, 2026·5 min read·28 visits
A flaw in the default configuration of the http4k digest authentication filter implements an always-true nonce verifier. This disables replay protection, allowing interceptors to reuse captured authorization payloads indefinitely to bypass authentication.
The http4k-security-digest module within the http4k library fails to validate HTTP Digest Access Authentication nonces by default. Due to an always-true nonce verifier lambda implementation, applications using default configurations do not enforce session freshness or uniqueness. This design flaw allows remote attackers to perform replay attacks, gaining unauthorized access to protected endpoints by intercepting and retransmitting valid authorization headers.
The http4k framework is an HTTP toolkit written in Kotlin. Within the http4k-security-digest module, the ServerFilters.DigestAuth filter and DigestAuthProvider class provide HTTP Digest Access Authentication capabilities, designed to secure server-side routes.
HTTP Digest Authentication (defined in RFC 2617 and RFC 7616) relies on a challenge-response protocol. It calculates MD5 or SHA-256 digests over a collection of credentials, target URIs, and cryptographically generated server values known as nonces. The protocol requires the server to verify the validity, integrity, and freshness of these nonces to prevent attackers from reusing legitimate client-submitted headers.
In vulnerable versions of http4k-security-digest, the default implementation of the nonceVerifier was hardcoded to accept any incoming string as valid. This configuration-level oversight exposes protected endpoints to capture-replay vulnerabilities, undermining the core security guarantees of the digest authentication scheme.
The root cause of this vulnerability lies in the improper verification of cryptographic signatures and session freshness, classified under CWE-347 and CWE-294. In HTTP Digest Authentication, the nonce acts as a single-use token that prevents attackers from capturing a user's cryptographic response and using it in future requests.
To ensure proper security, a NonceVerifier must perform multiple checks: it must confirm that the nonce was generated by the server, verify that the timestamp embedded inside the nonce is within a defined time-to-live window, and ensure the nonce has not been consumed previously. If the client request incorporates quality-of-protection (qop) options, the server must also track the nonce counter (nc) to prevent multi-use replays.
Prior to version 6.48.0.0 of http4k, the default signature of DigestAuth assigned the lambda { true } to the nonceVerifier parameter. Consequently, the server skipped all state, freshness, and signature verification checks on the client-supplied nonce. Any string provided in the nonce field of the Authorization header was accepted unconditionally, allowing the cryptographic hash evaluation to succeed for outdated, stolen, or entirely fabricated nonces.
In the vulnerable implementation of the http4k-security-digest module, the ServerFilters.DigestAuth filter was configured with insecure defaults. The snippet below highlights the vulnerable parameter declarations in serverFilterExtensions.kt:
// VULNERABLE CODE PATH
fun ServerFilters.DigestAuth(
realm: String,
passwordLookup: (String) -> String?,
qop: List<Qop> = listOf(Qop.Auth),
digestMode: DigestMode = DigestMode.Standard,
nonceGenerator: NonceGenerator = SECURE_NONCE,
nonceVerifier: NonceVerifier = { true }, // <-- VULNERABILITY: Bypasses validation
algorithm: String = "MD5",
usernameKey: RequestContextLens<String>? = null,
): FilterThe fix implemented in commit 4f904b4692c104c2a20ae8dbf89bd86a2211ff67 resolved this by removing the default values for both nonceGenerator and nonceVerifier, making them mandatory parameters that must be supplied by the developer:
// PATCHED CODE PATH
fun ServerFilters.DigestAuth(
realm: String,
passwordLookup: (String) -> String?,
qop: List<Qop> = listOf(Auth),
digestMode: DigestMode = Standard,
nonceGenerator: NonceGenerator, // <-- Forced parameter declaration
nonceVerifier: NonceVerifier, // <-- Forced parameter declaration
algorithm: String = "MD5",
usernameKey: RequestLens<String>? = null,
): FilterSimilarly, the default value in DigestAuthProvider.kt was removed to ensure compile-time safety. This breaking API change prevents developers from accidentally deploying authentication filters with an inactive verification loop.
To exploit this vulnerability, an attacker must acquire a valid Authorization header from a legitimate client request. This is achieved via local network sniffing, machine-in-the-middle positioning on unencrypted HTTP channels, log leakages, or reverse proxy inspection.
Once the attacker captures the payload, they can perform the replay attack. Because the server does not enforce nonce uniqueness or age verification, the captured header remains valid indefinitely, provided the client's password remains unchanged.
No complex custom client software is required. An attacker can retransmit the exact header via standard utilities such as cURL or Postman to gain access to the target endpoint under the identity of the compromised user.
The impact of this vulnerability is the complete breakdown of the authentication boundary for endpoints using default digest authentication settings. Attackers can hijack active sessions and perform unauthorized state-changing operations or retrieve confidential data.
Upgrading the library fixes the default behaviors, but developers face a residual risk of self-reintroduction. When upgrading to version 6.48.0.0 or later, compilation errors will occur on prior implementations. To bypass these errors quickly, developers may be tempted to explicitly set nonceVerifier = { true }. This action reintroduces the vulnerability.
Additionally, if developers adopt a stateless, signed-nonce design without recording consumed tokens, attackers can still replay authentication requests within the short time window permitted by the signature's expiration claim. Absolute protection requires recording stateful markers (e.g., in a shared cache like Redis) to block duplicate nonce submissions entirely.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
http4k-security-digest http4k | < 6.48.0.0 | 6.48.0.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-347, CWE-294 |
| Attack Vector | Network / Adjacent (Traffic Interception required) |
| CVSS v3.1 Score | 8.1 (High) |
| Impact | Authentication Bypass / Session Hijacking |
| Exploit Status | PoC Conceptually Documented |
| KEV Status | Not Listed |
The application does not properly verify a cryptographic signature or token freshness, allowing reuse attacks to bypass authentication control gates.
CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.
CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.
CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.
CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
CVE-2026-114154 is a high-severity Denial of Service (DoS) and uncontrolled resource consumption vulnerability in the Microsoft.AspNetCore.Server.HttpSys component of ASP.NET Core. When processing an HTTP request that simultaneously contains a chunked Transfer-Encoding header, a Content-Length header, and an explicit X-Content-Length header, the server throws an unhandled ArgumentException during header normalization. In certain versions, subsequent exception handling attempts to dereference a disposed native request context, aborting error response dispatch and leaking unmanaged HTTP.sys request structures.
A local elevation of privilege vulnerability exists in the Microsoft .NET Aspire CLI (`Aspire.Cli`) versions 13.5.4 prior to 13.6.5. When executing SDK management commands (`aspire sdk generate`, `aspire sdk dump`, and `aspire sdk export`), the CLI creates temporary project directories inside the shared operating system temporary folder (such as `/tmp` on Unix-like systems) without restricting directory permissions or disabling MSBuild automatic response file resolution. A local, low-privileged attacker on a multi-user system can place a crafted `Directory.Build.rsp` file in the shared temporary directory hierarchy. When a victim user executes an affected Aspire CLI command, MSBuild traverses upward, ingests the attacker-controlled response file, and executes arbitrary commands in the security context of the victim user.