Repository navigation
v2.5.7 — 安全修复:拦截跨站请求,永久删除改为按钮确认
变更
- Security fix: cross-site requests are blocked. The dashboard only listens on 127.0.0.1, but
any web page the user has open can still send requests to it. Requests carrying
Sec-Fetch-Site: cross-site, or anOriginthat is not our own, are now rejected with 403 —
so a random page can no longer trigger cleanups. Command-line and MCP clients (no such headers)
are unaffected. - Permanent deletion now requires POST.
/q/purge(drop expired quarantine items) and the
L2 rule "delete for real" confirmation were plain GET links: a refresh, a prefetch or an external
request could fire them. Both are now form buttons; GET gets 405. - Trailing-slash URLs such as
/clean/now redirect (301) instead of 404. - Loading overlay in English mode says "Working…" instead of "正在Handle…".
- Tests: cross-site rejection, POST-only purge, trailing-slash redirect, origin matching.
为什么值得升级
这是安全问题,不是功能更新:升级前,一个打开了恶意/被挂马的网页的浏览器,就能向你本机的
看板发一个请求把隔离区永久清空。升级后跨站请求一律 403,永久删除也只能由页面按钮触发。