Highlights
Cryptographic Issues: 1 prior fix. Scrutinize any change in this area.
corelib/src/starknet/secp256_trait.cairo: most-fixed (2 issues). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Signature Malleability: Incomplete verification of ECDSA signature parameters (the `s` value) allowed multiple valid representations of the same signature, potentially leading to replay attacks or transaction malleability. Future cryptographic helpers must strictly enforce canonical mathematical boundaries.
Cryptographic Issues: Inverted boolean logic in the y-parity calculation during public key recovery corrupted signature verification outcomes, representing a flaw in the fundamental mathematical implementation of cryptographic traits.
Input Validation: Ethereum addresses deserialized from storage lacked boundary validation, requiring explicit constraints to ensure they conform strictly to the 160-bit limit. Failure to enforce these bounds can corrupt internal representation states when unpacked.