Security context

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

horizontalsystems/unstoppable-wallet-android
master @ 3324e94
40
Fixes
0
CVEs
HIGH
Peak severity
47.5%
Coverage
Highlights
Auth Bypass: 21 prior fixes. Scrutinize any change in this area.
app/src/main/java/io/horizontalsystems/bankwallet/modules/settings/security/DuressPasscodeBlock.kt: most-fixed (2 issues). Treat as high-risk during review.
11 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: Users were historically allowed to configure a secondary duress passcode without first enforcing or verifying the primary wallet PIN, leaving a direct path to bypass core device protection. Furthermore, sensitive endpoints like disabling duress pins lacked authorized action wrappers.
Auth Bypass: Flaws in lifecycle lock checks and deep-link routing allowed attackers to bypass the application passcode screen entirely. Specifically, transitioning through background-to-foreground or launching via WalletConnect deep-links directly bypassed active lock state enforcement.
Insecure Communication: The application repeatedly queried blockchain details (Bitcoin/Litecoin testnets) via cleartext HTTP transport, permitting network-level metadata leakage and traffic manipulation. Explicit network security policies were required to disable cleartext traffic globally except for restricted debugging endpoints.