CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-C7JM-38GQ-H67H

GHSA-C7JM-38GQ-H67H: Authentication Bypass via Replay Attack in http4k-security-digest due to Insecure Default Nonce Verifier

Amit Schendel
Amit Schendel
Senior Security Researcher

Jun 19, 2026·5 min read·3 visits

Executive Summary (TL;DR)

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.

Vulnerability Overview

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.

Root Cause Analysis

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.

Code Analysis & Patch Mechanics

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,
): Filter

The 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,
): Filter

Similarly, 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.

Exploitation & Attack Methodology

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.

Impact Assessment & Residual Risks

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.

Fix Analysis (1)

Technical Appendix

CVSS Score
8.1/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Systems

http4k-security-digest library deployments using default configurations

Affected Versions Detail

Product
Affected Versions
Fixed Version
http4k-security-digest
http4k
< 6.48.0.06.48.0.0
AttributeDetail
CWE IDCWE-347, CWE-294
Attack VectorNetwork / Adjacent (Traffic Interception required)
CVSS v3.1 Score8.1 (High)
ImpactAuthentication Bypass / Session Hijacking
Exploit StatusPoC Conceptually Documented
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1557Adversary-in-the-Middle
Credential Access
CWE-347
Improper Verification of Cryptographic Signature

The application does not properly verify a cryptographic signature or token freshness, allowing reuse attacks to bypass authentication control gates.

References & Sources

  • [1]GHSA-C7JM-38GQ-H67H Advisory Details

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 2 hours ago•CVE-2026-11769
6.4

CVE-2026-11769: Local File Read and Privilege Escalation in Grafana Operator via Jsonnet Evaluation

CVE-2026-11769 is a directory traversal vulnerability affecting the Grafana Operator before version 5.24.0. An authenticated attacker with basic namespace privileges can deploy a crafted GrafanaDashboard or GrafanaLibraryPanel custom resource to read sensitive local files. This enables the extraction of the service account token of the operator manager, resulting in cluster-wide privilege escalation.

Amit Schendel
Amit Schendel
3 views•7 min read
•about 2 hours ago•CVE-2026-53725
5.9

CVE-2026-53725: Sensitive Information Disclosure via MFA Re-fetch Bypass in Parse Server

CVE-2026-53725 is a critical sensitive information disclosure vulnerability in Parse Server (versions 9.8.0 to < 9.9.1-alpha.5). When Multi-Factor Authentication (MFA) is enabled and standard read permissions on the _User class are restricted via Class-Level Permissions (CLPs), the /login and /verifyPassword endpoints improperly fall back to returning the raw database row upon a failed mock re-fetch request. This behavior leaks plaintext MFA TOTP secrets, recovery codes, and fields designated as protected, enabling attackers with compromised user passwords to bypass multi-factor authentication controls entirely.

Alon Barad
Alon Barad
2 views•8 min read
•about 3 hours ago•CVE-2026-53726
6.9

CVE-2026-53726: Authorization Bypass in Parse Server Relation Queries ($relatedTo)

Parse Server prior to versions 8.6.80 and 9.9.1-alpha.6 contains an authorization bypass vulnerability in its relation query handling. A database query utilizing the `$relatedTo` operator can read the membership details of a Relation field even when that field is hidden via `protectedFields` or restricted by object-level Access Control Lists (ACLs).

Amit Schendel
Amit Schendel
3 views•9 min read
•about 3 hours ago•GHSA-9GGV-8W38-R7PM
8.1

GHSA-9GGV-8W38-R7PM: SQL Injection in TypeORM UpdateQueryBuilder and SoftDeleteQueryBuilder

A critical SQL injection vulnerability was discovered in TypeORM's UpdateQueryBuilder and SoftDeleteQueryBuilder when targeting MySQL and MariaDB backends. The flaw allows unauthenticated remote attackers to execute arbitrary SQL commands because input validation was bypassed on certain method signatures. The initial patch was incomplete, leaving a bypass open, which was resolved in the final security update.

Amit Schendel
Amit Schendel
5 views•6 min read
•about 4 hours ago•GHSA-C3WQ-J5VH-68RC
6.0

GHSA-C3WQ-J5VH-68RC: Hugo Symlink Confinement Bypass in os.ReadFile

Hugo versions v0.123.0 through v0.163.0 are vulnerable to a directory confinement bypass. A regression in the virtual filesystem layer causes symbolic links to be followed during template execution, allowing templates to read arbitrary host files.

Amit Schendel
Amit Schendel
4 views•5 min read
•about 5 hours ago•GHSA-MQQ5-J7W8-2HGH
7.5

GHSA-MQQ5-J7W8-2HGH: Missing Authorization in Alchemy CMS API Pages Controller

A critical missing authorization vulnerability exists in the API Pages Controller of Alchemy CMS. An unauthenticated remote attacker can exploit the 'nested' action to retrieve the entire nested page tree. Furthermore, by appending the query parameter '?elements=true', the attacker can extract sensitive content from draft, unpublished, and restricted pages, bypassing all access controls.

Alon Barad
Alon Barad
4 views•6 min read