Skip to content

Question sheet page: close the two gaps against another account on the same Mac #887

Backlog

Description

@SSFSKIM

What

The question sheet's local page (mawsd, sheet.localhost:47590; composite spec docs/doperpowers/specs/2026-11-23-question-sheet-design.md, §8.2, child C4, board #869) does not defend a paired browser against a program run by another login account on the same Mac. Two cases, both written in §8.2 as stated limits and both accepted by the owner on 2026-11-27 ("Ship with the limit"):

  1. Open or reload while the port is held. While mawsd is not listening, whoever answers on the page's port owns its origin; a page loaded then runs that program's script, which can take the pairing from the origin's storage.
  2. A relay on an open tab. The proof a tab asks of the server names the daemon, not the connection. A program that holds a tab's connection (it had the port while mawsd was not listening, and the tab reconnected to it) can pass the tab's nonce to the real daemon, hand back the proof and receive the credential, with no reload. Found by the branch review of C4's first landing (PR Question sheet C4a: the local page (M1 to M4), served only under its switch #886). The proof covers the page's origin, which narrows this and does not close it.

Programs of the same account are out of scope (they can already write to a sheet's inbox), and a Mac with one account is not exposed.

What closing it would take

  • For case 2: no reusable credential on the wire. All of the page's data traffic (the live connection's messages and the data requests' bodies) sealed with a key derived from the pairing, with a counter per direction, so a relay learns nothing and can forge nothing.
  • For case 1: the port never free for another account while the person is logged in, for example a launchd-held socket in the daemon's agent, so mawsd's restarts leave no window.

Acceptance

A program of a second account that binds the page's port during a mawsd restart, and relays or serves, obtains neither a credential nor a sheet's content from a tab that was open, and a page opened meanwhile does not load from it.

Status

Deferred by the owner's ruling of 2026-11-27. Take it up if MAWS is to run on Macs whose accounts do not trust each other.

Activity

  1. SSFSKIM commented on Nov 27, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Deferred by the owner on 2026-11-27 ("Ship with the limit"); stated limits in the composite's §8.2.

  2. added
    enhancement
    status:deferred
    priority:P3
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:deferred

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions