Security context

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

FuelLabs/sway-standards
master @ 1cabd78
4
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Logic Bug: 2 prior fixes. Scrutinize any change in this area.
examples/src6-vault/multi_token_vault/src/main.sw: most-fixed (1 issue). Treat as high-risk during review.
3 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 Bug: Duplicate total_supply adjustments cause double-counting of shares, leading to incorrect accounting and potential fund loss in a financial vault.
Logic Bug: total_supply updated with the wrong asset (asset instead of share_asset) corrupts share accounting, risking fund loss.
Data Integrity: Using stdlib keccak256 with length-prefix corruption silently breaks signature verification integrity, undermining trust in the standard.