Skip to content

CVE-2025-68113 ALTCHA Proof-of-Work Vulnerable to Challenge Splicing and Replay

MediumCVSS 6.5 EPSS 0.50% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
PHP

Description

ALTCHA is privacy-first software for captcha and bot protection. 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. 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, which include version 1.0.0 of the altcha Golang package, version 1.0.0 of the altcha Rubygem, version 1.0.0 of the altcha pip package, version 1.0.0 of the altcha Erlang package, version 1.4.1 of the altcha-lib npm package, version 1.3.1 of the altcha-org/altcha Composer package, and version 1.3.0 of the org.altcha:altcha Maven package. 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.

Upgrade path

8 packages: 7 fixed.

PackageAffectedFixed inStatus
altcha-org github.com/altcha-org/altcha-lib-go(Go) < 1.0.0 1.0.0 Fixed
altcha-org/altcha(Packagist) < 1.3.1; = v0.1.0; = v0.1.1; = v0.1.2 +8 more 1.3.1 Fixed
hex altcha(Hex) < 1.0.0; = 0.1.0; = 0.2.0 1.0.0 Fixed
npm altcha-lib(npm) < 1.4.1 1.4.1 Fixed
org.altcha/altcha(Maven) < 1.3.0; = 1.1.0; = 1.1.1; = 1.1.2 +1 more 1.3.0 Fixed
pypi altcha(PyPI) < 1.0.0; = 0.1.0; = 0.1.2; = 0.1.3 +7 more 1.0.0 Fixed
rubygems altcha(RubyGems) < 1.0.0; = 0.1.0; = 0.2.0; = 0.2.1 1.0.0 Fixed
altcha-org altcha-lib = < 1.4.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm altcha-lib(npm) < 1.4.1 1.4.1
altcha-org/altcha(Packagist) < 1.3.1 1.3.1
altcha-org/altcha(Packagist) = v0.1.0 No fix listed
altcha-org/altcha(Packagist) = v0.1.1 No fix listed
altcha-org/altcha(Packagist) = v0.1.2 No fix listed
altcha-org/altcha(Packagist) = v0.1.3 No fix listed
altcha-org/altcha(Packagist) = v0.1.4 No fix listed
altcha-org/altcha(Packagist) = v1.0.0 No fix listed
altcha-org/altcha(Packagist) = v1.1.0 No fix listed
altcha-org/altcha(Packagist) = v1.1.1 No fix listed
altcha-org/altcha(Packagist) = v1.1.2 No fix listed
altcha-org/altcha(Packagist) = v1.2.0 No fix listed
altcha-org/altcha(Packagist) = v1.3.0 No fix listed
altcha-org github.com/altcha-org/altcha-lib-go(Go) < 1.0.0 1.0.0
org.altcha/altcha(Maven) < 1.3.0 1.3.0
org.altcha/altcha(Maven) = 1.1.0 No fix listed
org.altcha/altcha(Maven) = 1.1.1 No fix listed
org.altcha/altcha(Maven) = 1.1.2 No fix listed
org.altcha/altcha(Maven) = 1.2.0 No fix listed
rubygems altcha(RubyGems) < 1.0.0 1.0.0
rubygems altcha(RubyGems) = 0.1.0 No fix listed
rubygems altcha(RubyGems) = 0.2.0 No fix listed
rubygems altcha(RubyGems) = 0.2.1 No fix listed
pypi altcha(PyPI) < 1.0.0 1.0.0
pypi altcha(PyPI) = 0.1.0 No fix listed
Show 13 more
ProductAffected versionsFixed in
pypi altcha(PyPI) = 0.1.2 No fix listed
pypi altcha(PyPI) = 0.1.3 No fix listed
pypi altcha(PyPI) = 0.1.4 No fix listed
pypi altcha(PyPI) = 0.1.5 No fix listed
pypi altcha(PyPI) = 0.1.6 No fix listed
pypi altcha(PyPI) = 0.1.7 No fix listed
pypi altcha(PyPI) = 0.1.8 No fix listed
pypi altcha(PyPI) = 0.1.9 No fix listed
pypi altcha(PyPI) = 0.2.0 No fix listed
hex altcha(Hex) < 1.0.0 1.0.0
hex altcha(Hex) = 0.1.0 No fix listed
hex altcha(Hex) = 0.2.0 No fix listed
altcha-org altcha-lib = < 1.4.1 No fix listed

References