# GHSA-82W8-65QW-GCH6: ALTCHA PHP: verifySolution bypasses HMAC signature check when challenge signature is absent

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-18
- Modified: 2026-11-18

## Tracked as

- [CVE-2026-71481](https://cve.now/CVE-2026-71481.md): ALTCHA Lib PHP captcha bypass via missing HMAC check in verifySolution

## Affected versions

- altcha-org/altcha (Packagist): from 2.0.0, fixed in 2.0.3

## 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.

## References

- https://github.com/altcha-org/altcha-lib-php/security/advisories/GHSA-82w8-65qw-gch6
- https://github.com/altcha-org/altcha-lib-php/commit/8b02ad2c9b82998613bac4d093517d457061cbbe
- https://github.com/altcha-org/altcha-lib-php
- https://github.com/altcha-org/altcha-lib-php/releases/tag/v2.0.3

Page: https://cve.now/GHSA-82W8-65QW-GCH6
