GitHub Advisoryadvisory · npm, Packagist, Go, Maven, RubyGems, PyPI, Hex

GHSA-6gvq-jcmp-8959 ALTCHA Proof-of-Work Vulnerable to Challenge Splicing and Replay

MEDIUM Published 2025-12-16 Modified 2025-12-20 Official page ↗
Aliases
CVE-2025-68113
Ecosystem
npm, Packagist, Go, Maven, RubyGems, PyPI, Hex
Packages
altcha-lib, altcha-org/altcha, github.com/altcha-org/altcha-lib-go, org.altcha:altcha, altcha
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weaknesses
CWE-115, CWE-347
Reviewed
2025-12-16

Affected packages

• npm altcha-lib: < 1.4.1 → fixed in 1.4.1 • Packagist altcha-org/altcha: < 1.3.1 → fixed in 1.3.1 • Go github.com/altcha-org/altcha-lib-go: < 1.0.0 → fixed in 1.0.0 • Maven org.altcha:altcha: < 1.3.0 → fixed in 1.3.0 • RubyGems altcha: < 1.0.0 → fixed in 1.0.0 • PyPI altcha: < 1.0.0 → fixed in 1.0.0 • Hex altcha: < 1.0.0 → fixed in 1.0.0

Description

Impact A cryptographic semantic binding flaw in ALTCHA libraries allows challenge payload splicing, which may enable replay attacks. The HMAC signature does not unambiguously bind challenge parameters to the nonce, allowing an attacker to reinterpret a valid proof-of-work submission with a modified expiration value. This may allow previously solved challenges to be reused beyond their intended lifetime, depending on server-side replay handling and deployment assumptions. The vulnerability primarily impacts abuse-prevention mechanisms such as rate limiting and bot mitigation. It does not directly affect data confidentiality or integrity. Patches This issue has been addressed by enforcing explicit semantic separation between challenge parameters and the nonce during HMAC computation. Users are advised to upgrade to patched versions. Workarounds As a mitigation, implementations may append a delimiter to the end of the `salt` value prior to HMAC computation (for example, `?expires=&`). This prevents ambiguity between parameters and the nonce and is backward-compatible with existing implementations, as the delimiter is treated as a standard URL parameter separator.

Related

Alias · CVE (1)

  • CVE-2025-68113 ALTCHA is privacy-first software for captcha and bot protection. vulnerability

Weakness · CWE (2)

  • CWE-115 Misinterpretation of Input weakness
  • CWE-347 Improper Verification of Cryptographic Signature weakness

References