Security context

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

shapeshift/web
develop @ fbb3248
12
Fixes
0
CVEs
HIGH
Peak severity
75.0%
Coverage
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
packages/chain-adapters/src/cosmossdk/CosmosSdkBaseAdapter.ts: most-fixed (1 issue). Treat as high-risk during review.
8 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.

Sanctions Bypass: Sanctions validation was only performed at broadcastTransaction, missing the sender address and leaving a window before signing. The fix moved validation to buildTransaction to cover all inputs/outputs/change/receive addresses.
Sanction Enforcement Bypass: Basic address validation was replaced with a dedicated sanction check (assertAddressNotSanctioned) across all chain adapters, indicating the previous validation did not enforce sanctions.
Auth Bypass: The smart contract address check was applied to receiveAddress instead of sendAddress, allowing THORChain trades to bypass the restriction via a smart contract receive address.