Medium

ALTCHA Proof-of-Work Vulnerable to Challenge Splicing and Replay

  • Disclosed: 16.12.2025
  • Updated: 11.10.2026 13:18

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, <salt>?expires=<time>&). 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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package altcha-org/altcha < 1.3.1 1.3.1
Java / Kotlin (Maven) org.altcha:altcha < 1.3.0 1.3.0
npm package altcha-lib < 1.4.1 1.4.1
Python (PyPI) altcha < 1.0.0 1.0.0

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness (CWE)
CWE-115, CWE-347
Platform
Composer, Java / Kotlin (Maven), npm, Python (PyPI)
Package
altcha-org/altcha, org.altcha:altcha, altcha-lib
Disclosed
16.12.2025
Updated
11.10.2026 13:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-6gvq-jcmp-8959 - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-1115 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: org.altcha:altcha

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.