Security context

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

bitpay/wallet
master @ ff2e9d0
22
Fixes
3
CVEs
CRITICAL
Peak severity
80.0%
Coverage
Highlights
Auth Bypass: 9 prior fixes. Scrutinize any change in this area.
js/models/core/Wallet.js: most-fixed (5 issues). Treat as high-risk during review.
9 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: Flaws in cryptographic signature checking and reference validation allowed bypasses of payment request verifications and let unauthenticated data corrupt address books. Implementing strict verification against sender public keys is critical here.
Auth Bypass: Missing constraints on identity registration and importing allowed existing wallet profiles to be overwritten without user authorization, potentially destroying or hijacking active profiles.
Cryptographic Issues: Credentials and keys were previously stored in unencrypted form or derived with insufficient cryptographic strength. This was hardened by introducing PBKDF2 encryption based on the user's PIN and increasing key derivation iteration parameters.