Limit what a tracker can make the page do, recommend anti-framing headers
A tracker message over 64 KiB isn't parsed, before acceptance it rejects the tracker like a failure reason. Beyond 20 messages per 10 s the rest is dropped, so a tracker can't keep the page parsing and decrypting. What a tracker makes a socket log goes through one note: each line once, at most 10 per socket. The log keeps the last 1000 lines in a shallow ref and says how many went. index.html sets Referrer-Policy itself, the README recommends the headers a <meta> can't set: frame-ancestors, X-Frame-Options and nosniff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b102e55495
commit
7f4811485a
7 files changed
+151
-31
No files matched your search
@@ -9,19 +9,6 @@ From a security review, none of them urgent.
|
||||
`invoiceexe.pdf`. Strip C0/C1 and bidi controls where the name is shown and logged, maybe for
|
||||
`Content-Disposition` in `sw.js` too, though browsers sanitize download names themselves.
|
||||
|
||||
- Limit what a tracker can make the page do: no size or rate limit on its messages, `parse` and
|
||||
`unseal` take whatever arrives, failure reasons after acceptance are logged, and the log in
|
||||
`App.vue` grows without bound. A malicious tracker can freeze the tab. Only availability, and only
|
||||
of a tracker the user chose, but cheap: cap `event.data.length` before parsing, cap the log, drop
|
||||
failure reasons after acceptance or log one.
|
||||
|
||||
- Framing: no `frame-ancestors`, so another page can frame HellCon and overlay the security check's
|
||||
buttons. Gains little: a framed HellCon starts empty like any other, nothing is kept, so it has no
|
||||
file or offer the user didn't pick or paste inside it, and the address bar shows the framing site.
|
||||
That site could as well serve a modified copy that fakes the codes. `frame-ancestors` and
|
||||
`X-Frame-Options` only work as headers, not in a `<meta>`. Recommend them,
|
||||
`X-Content-Type-Options: nosniff` and `Referrer-Policy: no-referrer` in Host your own.
|
||||
|
||||
## Ideas
|
||||
|
||||
- Resume interrupted transfers: the receiver already reports how much the download manager has
|
||||
|
||||
Reference in new issue
Block a user