You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plan 0006: check that rendered notes run no script in Safari on the iPhone #230
Plan 0006, Phase 6 lists one check as pending: rendered notes run no script in the phone's browser (Safari on the iPhone), through lodge. The same check passed in Firefox on loopback on 2026-10-19 (TestIRenderedNotesRunNoScript, make m4-evidence). No run on the phone is recorded.
Both sanitizers (notesd's and the app's) and lodge's CSP do not depend on the browser, so a failure is not expected. The check confirms it on the real device.
How
This needs the owner's phone; an agent cannot run it.
In a scratch vault, or a scratch note in the vault served through lodge, write the note body of evil in internal/webevidence/xss_integration_test.go (the <script>, onerror, onload, ontoggle, srcdoc and javascript: cases), and attach the evilSVG file from the same test. These payloads only set window.__xss (or parent.__xss); a run that succeeds shows nothing on the screen, so the check must read that mark.
Connect the iPhone to Safari's Web Inspector on a Mac (Settings > Safari > Advanced > Web Inspector on the phone; Develop menu on the Mac).
Positive control first: in Web Inspector's console for notes' frame, run window.__xss = "control", read it back, then run delete window.__xss. This proves the console reads the right frame.
Open the note through lodge in live preview, then in reading view. Tap each link. After each step, read window.__xss in notes' frame and in lodge's shell (the top frame): it must be undefined.
Open the SVG from the file's view (Open in new tab). In Web Inspector, select that tab and read window.__xss: it must be undefined. Check also that the response has lodge-content's Content-Security-Policy with sandbox.
Delete the scratch note and file.
Without a Mac, the check cannot read the marks. Then use payloads with a visible effect instead (for example document.title = "XSS" or document.body.style.background = "red"), with the same visible payload run once on purpose in a page that allows script as the positive control.
Done when
The result (pass, or each finding) is recorded in plan 0006's Phase 6, with the date, the iOS and Safari versions, and how it was observed. A finding gets a fix with a test.
Activity
docs(plans): plan 0006: name the evidence gap of #230 and who accepts…