[LOW] Viewer cookie (vwr) lacks the Secure attribute #138
Notifications
Total Time Spent: 45 minutes
fen
45 minutes
No due date set.
Dependencies
No dependencies set.
Reference: poslop/palette#138
Reference in New Issue
Block a user
set-cookie: vwr=...; Path=/; Max-Age=31536000; HttpOnly; SameSite=Lax - no Secure flag. All current deployments are HTTPS-only so impact is defense-in-depth only, but the cookie would be sent over http:// if a user ever hits a non-TLS listener.
Repro
Found during exploratory security/bug pass on palette-dev (2026-09-09). Reporting only, no fix attached.
Fix proposal (trivial): set the Secure attribute on the vwr viewer cookie (the dev site is HTTPS-only behind Traefik; keep SameSite=Lax). One-line change in the cookie-setting helper.
QA passed on live palette-dev (image sha256:7dad5f69..., merge commit
ca77250on dev).vwr=...; Path=/; Max-Age=31536000; HttpOnly; Secure; SameSite=Lax.Closing, branch deleted.