Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

trustwallet/wallet-core
master @ 68cf626
27
Fixes
0
CVEs
HIGH
Peak severity
21.7%
Coverage
Highlights
Auth Bypass: 6 prior fixes. Scrutinize any change in this area.
src/PublicKey.cpp: most-fixed (4 issues). Treat as high-risk during review.
13 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.

Auth Bypass: WebAuthn signature checks were bypassable through key injection due to simple string searches instead of proper JSON structure parsing. Developers should never verify cryptographic structures using substring patterns.
Cryptographic Issues: Ed25519 signature checks were effectively bypassed due to an incorrect pointer offset when reading the public key, highlighting the extreme risk of custom byte-pointer arithmetic on raw public keys.
Auth Bypass: Tron transaction validation was vulnerable to signature bypasses where the signed hash differed from the computed payload hash. Comprehensive validation of structure, contract existence, and hash consistency is mandatory.