Signature Malleability & Zero-Padding Denial: VerifySignature omits small-s and canonical low-S check permitting signature malleability on external payloads
Report
Vulnerability Category
Cryptography / Signature Validation & Canonical Encoding
Vulnerability Subcategory
Signature Malleability / Non-Canonical Verification Bypass
Summary
In the cryptographic signature verification routine (crypto/sign.go), signature validation against external payloads omits strict canonical encoding checks (low-S verification and non-zero high-order field validation). An attacker intercepting a valid signed broadcast message or off-chain attestation can compute the malleable counterpart signature (S' = N - S) which still verifies successfully under standard loose verification logic. When combined with systems utilizing signature hashes as unique identifiers (deduplication filters in gossip networks), this malleability causes cache poisoning and replay of duplicate modified transactions under differing signature hashes.
Technical Root Cause
In crypto/sign.go:
func VerifySignature(pubKey []byte, msg []byte, sig []byte) bool {
if len(sig) != 64 {
return false
}
// Lacks check for canonical S values (low-S constraint)
// Permitting malleable signatures to bypass deduplication caches
}
Impact
- Signature malleability breaks uniqueness invariants across gossip relays and off-chain attestation tracking.
- Attackers can pollute message caches, bypassing replay detection filters by altering signatures without invalidating cryptographic proof.
Remediation
Enforce strict canonical low-S validation on all signatures before acceptance into gossip caches or consensus state.
Thread
Thanks for the report. We read it against the code and could not confirm a bug in what it describes.
This report is closed as invalid. If we have missed something, file a new report that links https://bounty.xe.network/XE-10484 and says what; it is read like any other.