mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 08:15:41 -08:00
Sign the macOS app's dashboard frame in by a path prefix, since WebKit gives it no cookie
AI Assisted
This commit is contained in:
1 parent
1d007737b1
commit
98bdbc97c3
10 files changed
+411
-21
No files matched your search
@@ -133,6 +133,11 @@ this:
|
||||
visiting from talking to it through a DNS rebinding trick.
|
||||
- A 128-bit token in the link, swapped for an `HttpOnly; SameSite=Strict` cookie
|
||||
on first load so it leaves your address bar, your history and any screenshot.
|
||||
In the macOS desktop app the page's frame gets no cookie (WebKit blocks
|
||||
cookies for a frame from another site), so the link sends that frame to
|
||||
`/f/<key>/` on the same `127.0.0.1` address instead, where the key is a hash
|
||||
of the token, and the server lets in only requests under that exact prefix.
|
||||
The frame has no address bar, and a browser tab still gets the cookie.
|
||||
- A strict Content Security Policy with no inline script allowed.
|
||||
- Markdown written by the agent is turned into page elements directly and never
|
||||
into an HTML string, so a document that quotes a hostile README cannot run
|
||||
|
||||
Reference in new issue
Block a user