Security context

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

forward-future/loopy
main @ cc7cb17
3
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
worker/src/auth-votes.js: most-fixed (2 issues). Treat as high-risk during review.
2 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: The GitHub authentication flow previously relied on cookies and origin headers which were stripped when operating behind reverse proxies, allowing authorization bypasses. Securing this requires enforcing a strict state nonce validation and session-scoped bearer token flow.
Auth Bypass: Validation logic utilized an incorrect catalog target instance ('production' instead of the live 'published-loops' instance), allowing unauthorized voting actions on unpublished items. Correct catalog identifier resolving is critical to enforcing proper data boundaries.
Reflected XSS: Unescaped JSON injected directly into script elements allowed arbitrary script execution via structured metadata during page generation. A robust, case-insensitive HTML escape guard must be maintained for all script-bound payloads.