mirror of
https://github.com/alireza0/s-ui.git
synced 2026-11-16 21:17:17 +00:00
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 |
||
|---|---|---|
| .. | ||
| web.go | ||