s-ui/web
freedomdb aba60068ad
web: add panel security headers and validate the release URL (#1305)
The panel answered without any security headers: nothing stopped
another site framing it (clickjacking a logged-in operator -- the
SameOrigin middleware cannot help, a click inside a frame posts
with the panel's own Origin), sniffing content types, or receiving
panel URLs in a Referer. Send frame-ancestors 'none', DENY,
nosniff and a same-origin Referer policy on every panel response.
The CSP deliberately stops at frame-ancestors: a fuller policy
must be fitted to the built frontend first.

CheckUpdate also hands the release html_url from the GitHub API
answer to the frontend, which renders it as a link; the binding
does not filter schemes, so reject an answer whose URL is not the
expected https://github.com/ one.

Prepared by muse ai
2026-10-31 16:41:16 +01:00
..
web.go web: add panel security headers and validate the release URL (#1305) 2026-10-31 16:41:16 +01:00