ALTCHA: Nil-map panic (pre-verification DoS) in v1 parseServerSignature on malformed VerificationData
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| altcha-orgaltcha-lib-go | — | Not listed |
| Gogithub.com/altcha-org/altcha-lib-go/v2 |
≥ 2.0.0, < 2.1.0→ 2.1.0 |
2.1.0 |
| Gogithub.com/altcha-org/altcha-lib-go |
All versions→ Not listed |
Not listed |
Original description The description as published by the source.
ALTCHA is a Go library for creating and verifying ALTCHA challenges. Prior to 2.1.0, parseServerSignature can leave ServerSignatureVerificationData.Extra uninitialized when url.ParseQuery returns partial values and an error for a malformed percent escape in VerificationData. A later write of an unknown parsed key to the nil map panics before VerifyServerSignature or VerifyServerSignatureSafe completes signature verification, so an unauthenticated client can abort a request. Standard net/http recovers the request goroutine, while application goroutines or frameworks without recovery can crash the process. This issue is fixed in version 2.1.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com