ALTCHA PHPで署名を省くとCAPTCHAを回避される脆弱性
Summary
ALTCHA PHPのverifySolutionで、チャレンジに署名がない場合にHMAC署名の検証が行われず、CAPTCHAを回避される脆弱性です。hmacSignatureSecretを設定していても影響を受け、2.0.0以上2.0.3未満が対象です。修正版の2.0.3に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
ALTCHA PHPのverifySolutionで、チャレンジに署名がない場合にHMAC署名の検証が行われず、CAPTCHAを回避される脆弱性です。hmacSignatureSecretを設定していても影響を受け、2.0.0以上2.0.3未満が対象です。修正版の2.0.3に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| altcha-orgaltcha-lib-php | — | Not listed |
| Packagistaltcha-org/altcha |
≥ 2.0.0, < 2.0.3→ 2.0.3 |
2.0.3 |
| composeraltcha-org/altcha |
< 2.0.3→ 2.0.3 |
2.0.3 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com