ALTCHA PHP: verifySolution bypasses HMAC signature check when challenge signature is absent
- State
- Published
- Severity
- 7.5 High
- Published
- Nov 18, 2026
- Updated
- Nov 19, 2026
- Reserved
- Aug 6, 2026
Description
ALTCHA PHP is a lightweight PHP library for creating and verifying ALTCHA challenges. From 2.0.0 until 2.0.3, the verifySolution method skips HMAC signature verification when a challenge payload omits the signature field, even when hmacSignatureSecret is configured. An attacker can remove the signature, supply attacker-selected low-difficulty challenge parameters, solve the resulting proof of work, and submit a payload that verifies successfully, bypassing the CAPTCHA control. This issue is fixed in version 2.0.3.
| Product | Versions |
|---|---|
| altcha-lib-php altcha-org | >= 2.0.0, < 2.0.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.5 High | GitHub_M |
Weaknesses
- CWE-347 Improper Verification of Cryptographic Signature
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.