Security context

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

web3swift-team/web3swift
develop @ f48d7a9
12
Fixes
0
CVEs
HIGH
Peak severity
25.0%
Coverage
Highlights
Logic Error: 8 prior fixes. Scrutinize any change in this area.
BIP32Keystore.swift: most-fixed (1 issue). Treat as high-risk during review.
12 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.

Logic Error: A recurring architectural vulnerability exists across multiple token helper modules where write operations fail to synchronize the active transaction parameters with the underlying contract instance, resulting in actions executed on stale or incorrect state configurations.
Hardcoded Credentials: The library historically embedded a default fallback password ('web3swift') in keystore initializers and registry operations, exposing users to trivial credential guessing if they accepted API defaults.
Memory Corruption: A critical buffer overrun existed in the random data generation extension, where a fixed size was copied via SecRandomCopyBytes instead of validating and utilizing the variable length parameter.