Security context

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

withspectrum/spectrum
alpha @ e8ebdcb
77
Fixes
11
CVEs
CRITICAL
Peak severity
48.6%
Coverage
Highlights
Auth Bypass: 38 prior fixes. Scrutinize any change in this area.
api/utils/permissions.js: most-fixed (8 issues). Treat as high-risk during review.
39 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: Frequent authorization bypasses occurred where unauthenticated, blocked, or deleted users could view private communities, threads, or channels because permission utilities did not reliably enforce explicit blocklists or authentication states.
CORS Misconfiguration: Permissive regular expressions without strict boundary constraints allowed any external domain matching wildcard configurations (e.g., evilzeit.sh or evil-spectrum.chat) to make authorized cross-origin requests.
Auth Bypass: The custom `@isAuthed` authorization directive was broken due to a migration gap and dependency on deprecated Apollo features, leaving decorated fields open to unauthenticated access.