Jun 19, 2026·5 min read·11 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-58263 is a high-severity Mutation Cross-Site Scripting (mXSS) vulnerability affecting Jodit Editor prior to version 4.12.28. The flaw exists in Jodit's built-in clean-html sanitizer plugin, which fails to securely parse and sanitize nested elements containing foreign namespaces like MathML and SVG. Attackers can bypass sanitization by smuggling malicious payload elements inside rawtext container tags like style inside a MathML node, leading to DOM mutation and unauthenticated arbitrary script execution in the context of the user's browser session.
Jodit Editor versions prior to 4.13.6 are vulnerable to client-side Cross-Site Scripting (XSS). The clean-html plugin's sanitization routine performs case-sensitive lookups against uppercase-only element blacklists. When processing XML-based foreign namespaces such as SVG or MathML, DOM engines preserve the lowercase format of tags. Because Jodit's denyTags check fails to normalize tag casing, malicious script blocks nested inside foreign namespace elements completely bypass validation and serialize directly into the editor output.
A critical code injection vulnerability exists in Savon, a widely used SOAP client library for Ruby, prior to version 2.17.2. The vulnerability resides within the Savon::Model.all_operations module, where operation names fetched from a target Web Services Description Language (WSDL) document are dynamically evaluated via module_eval without sanitization. An attacker capable of manipulating the target WSDL document (e.g., through Man-in-the-Middle attacks, DNS hijacking, or Server-Side Request Forgery) can execute arbitrary Ruby code in the context of the parent application process.
An integer conversion overflow vulnerability exists in the XCF decoder of ImageMagick before version 6.9.13-51 and 7.1.2-26. The issue arises from mixed-type arithmetic that promotes calculation results to floating-point representations, causing an undefined cast back to integer. Under optimizing compilers, this undefined behavior results in bounds checks being bypassed, allowing out-of-bounds heap reads.
An authenticated file upload validation bypass vulnerability exists in the REDAXO CMS Mediapool addon in versions 5.18.2 through 5.21.0. Under permissive web server configurations, this allows authenticated users with media upload privileges to achieve remote code execution via multi-segment extension file uploads.
A critical SQL injection vulnerability exists in the @nocobase/plugin-notification-in-app-message plugin of NocoBase prior to version 2.0.61. The flaw is caused by direct string interpolation of user-controlled input into a Sequelize.literal() query, allowing authenticated users to execute stacked PostgreSQL queries and achieve remote code execution on the underlying database server.