Highlights
Auth Bypass: 6 prior fixes. Scrutinize any change in this area.
src/controllers/PermissionsController.js: most-fixed (2 issues). 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.
Auth Bypass: Multiple permission logic flaws allowed origins to gain unauthorized access or escalate to ALL permissions, especially when whitelisted.
Auth Bypass: Background script permission checks (canApprove, hasPermission) were flawed, enabling unauthorized transaction signing or API access without proper account matching.
Auth Bypass / Spoofing: Referrer/origin values were not normalized to host-only, allowing spoofed origins in approval UI.