
Proof-of-concept and differential lab for CVE-2026-103033: a pre-auth nil-map panic in ALTCHA lib-go parseServerSignature, with PoC, exploit, and vuln/fixed containers.
VerificationData| CVE | CVE-2026-103033 |
| Component | altcha-lib-go — parseServerSignature() in altcha.go (v1 module) |
| Affected | >= 2.0.0, < 2.1.0 |
| Fixed in | 2.1.0 — genuine vendor fix, commit 2c4fc27a |
| CWE | CWE-476 (NULL Pointer Dereference), CWE-248 (Uncaught Exception) |
| Impact | Unauthenticated denial of service: any client forwarding an ALTCHA server-signature payload with a malformed percent escape crashes the verifying process before HMAC/signature validation |
| Vector | Network — attacker-controlled VerificationData inside the forwarded payload |
| Trigger | VerificationData = "x=1&%zz=2" |
url.ParseQuery returns the successfully parsed pairs and a non-nil
error when the query string contains a bad % escape. The vulnerable code
initialises Extra only inside the err == nil branch, then writes unknown
keys into Extra unconditionally:
// v2.0.0, parseServerSignature()
params, err := url.ParseQuery(parsedPayload.VerificationData)
if err == nil {
verificationData.Extra = make(map[string]interface{})
...
}
for key, values := range params {
if !knownFields[key] {
verificationData.Extra[key] = values[0] // nil map when err != nil
}
}
The fix (2.1.0) moves verificationData.Extra = make(...) before
url.ParseQuery, so malformed escapes are handled safely.
The parser conflated "ParseQuery succeeded completely" with "there are
pairs to process". Go's ParseQuery deliberately returns partial results
on error; the loop that copies unknown keys must therefore run only when
Extra has been initialised. Initialising inside the success branch leaves
a nil map for the error path, and the subsequent write panics. Because
parseServerSignature is called by the exported VerifyServerSignature
before any HMAC check, the panic is reachable pre-authentication.
| service | image | role |
|---|---|---|
alt-vuln | cve-2026-103033:vuln | altcha-lib-go v2.0.0 |
alt-fixed | cve-2026-103033:fixed | altcha-lib-go v2.1.0 (vendor fix) |
poc | cve-2026-103033-poc:local | stdlib-only Python driver |
A Go harness calls the real exported VerifyServerSignature() with a
base64-encoded JSON payload whose verificationData is attacker-controlled.
A Python service runs that harness as a child and reports whether the
process panicked with assignment to entry in nil map.
./run-lab.sh build # builds both tags with Go 1.25
./run-lab.sh up # cve103033lab network: alt-vuln / alt-fixed
./run-lab.sh sweep # check / exploit / probe / mitigation on both sides
./run-lab.sh down
poc/poc.py (stdlib only):
2c4fc27a.A standalone full-chain exploit ships at exploit/exploit.py:
python3 exploit/exploit.py --host=alt-vuln
# exit 1 on confirmed panic, 0 on a safe target
VerificationData | alt-vuln (2.0.0) | alt-fixed (2.1.0) |
|---|---|---|
x=1&%zz=2 | PANIC: assignment to entry in nil map | no panic, verification fails normally |
%zz | no unknown keys → no panic | no panic |
| clean / unknown-key controls | normal parsing | normal parsing |
Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt,
evidence/probe-*-run.txt, evidence/mitigation-*-run.txt,
evidence/exploit-standalone-run.txt, evidence/versions.txt,
evidence/0day-sweep.txt.
cve103033lab
network.The probe matrix on 2.1.0 shows no panic for any malformed form while clean
and unknown-key controls behave identically on both builds. Only the
malformed-percent-escape form triggers the nil-map write on v2.0.0; no
second pre-auth panic path was found in parseServerSignature.
README.md this write-up
run-lab.sh environment driver (build / up / sweep / down)
Makefile convenience targets
poc/poc.py the PoC (check / exploit / probe / mitigation)
exploit/exploit.py standalone full-chain exploit
lab/lab.Dockerfile builds both upstream tags
lab/harness/main.go Go driver calling VerifyServerSignature
lab/service.py HTTP wrapper (POST /verify)
evidence/ captured runs of every mode on both sides
TRACKING.md excluded (working record)