brave-browser#52029 [ZCash] Missing tx_hash length validation before RPC call
State: open · created · updated · discovered via label:feature/web3/wallet/zcash, search:zcash · matched label:feature/web3/wallet/zcash, title:zcash, body:zcash_rpc
bug priority/P4 feature/web3/wallet feature/web3/wallet/core feature/web3/wallet/zcash
Location: zcash_rpc.cc:308-315 (MakeGetTransactionParams) Issue: tx_hash loaded from storage is passed directly to base::HexStringToString without length validation. If storage is corrupted, partial hashes could be sent to RPC. Fix: Validate tx_hash is exactly 64 hex characters before calling GetTransaction This is an optimization to avoid getting a repeated RPC failure from this. Presumably if this fails we should probably throw the tx_hash away from storage and…
Timeline (1 of 5 events)
- 2026-01-16 04:50 Label added
priority/P4by kdenhartog