All reports
High

ALTCHA PHP: verifySolution bypasses HMAC signature check when challenge signature is absent

Affected versions

Affected versions
>= 2.0.0, < 2.0.3
Fixed version
2.0.3

Exploitation

CVE-2026-71481

Probability of exploitation in the next 30 days: 0.26%

FIRST EPSS · 2026-11-19

Description

In altcha-org/altcha v2, the verifySolution method skips HMAC signature verification when the signature field is absent from the challenge payload, even when hmacSignatureSecret is configured.

An attacker who strips the signature key from the challenge JSON passes the condition as false, bypassing tamper-detection entirely. The PoW solution check then runs against unverified parameters — allowing an attacker to self-issue a low-difficulty challenge, solve it trivially, and submit a payload that verifies as true.

Impact: Complete CAPTCHA bypass on any deployment that sets hmacSignatureSecret (the recommended production configuration).

Fix: The check was split so that a missing signature is explicitly rejected when a secret is configured.

Links

Credits

  • digilist