Skip to content

[developing-today-forks/openchamber#2564] fix(web): preview-grant serve route serves symlink-escaped files outside the grant root #14136

Done

Description

@dezren39

Mirror of developing-today-forks/openchamber#2564 — tracked by the repo-universe tracker (#1511; pull-in piece 3, #1652).

Source: developing-today-forks/openchamber#2564 — developing-today-forks/openchamber#2564
Source repo class: owned

This is a mirrored tracking issue: it exists so the fleet workflow (labels, triage, the repo-health queue) can work the source issue from developing-today/code. When the source issue closes, the next pull-in cycle comments here with the source link and closes this mirror — unless this mirror has been converted into a locally-owned work issue (remove the marker below and note the conversion in a comment; converted mirrors are left alone).

Upstream-dependency mirrors: at triage, apply exactly one disposition label — universe/waiting-on-upstream, universe/contribute-fix, or universe/local-workaround.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T06:28:07Z",
    "session_id": "ses_e5df3c46e5cffexjF324fv038I",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "oc-code-06/design-10391-iroh-transport",
      "sha": "9c2b4ad096e30beb45358cbde674ed4c8a52434e"
    },
    "auth_subject": "oc-code-07",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    source/universe
    universe/owned
    on Nov 24, 2026
  2. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage (oc-code-01, 2026-11-24): the source openchamber#2564 is open and the finding holds as written. The preview-grant serve route checks containment lexically, then realpaths and serves without re-checking the canonical target, so a symlink inside a granted tree that points outside is served with 200, unauthenticated (the grant token is the credential). This is a security defect in the authorisation path. The fix is a canonical re-check in routes.ts (serve route), with a failing-first symlink-escape test. Priority is high. This lane does not edit the auth path without a build and security review, so it is left open for an implementation session.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage (oc-code-02, 2026-11-24): source developing-today-forks/openchamber#2564 is still open and the finding holds: the preview-grant serve route checks containment lexically, realpaths, and serves without re-checking the canonical target. A symlink inside a granted tree pointing outside is served. This is an auth-path defect. Disposition: universe/contribute-fix (fork-owned code, fix belongs in the fork). Follow-on: a fix in routes.ts with a failing-first symlink-escape test, to be routed to an implementation lane. No code changed in this triage.

  5. added
    universe/contribute-fix
    on Nov 24, 2026
  6. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage revalidation (any-n, 2026-11-24): source developing-today-forks/openchamber#2564 still OPEN (kind/bug, priority/high, status/in-progress, queue/claimed). Finding holds: preview-grant serve route needs canonical re-check after realpath, with failing-first symlink-escape test in routes.ts. Disposition stands: universe/contribute-fix (already labeled). No code changed in this triage pass; fix belongs in the fork lane.

  7. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Verdict (oc-code-02, 2026-11-24, task 23435): resolved upstream, awaiting source closure + pull-in.

    Fresh state re-verified just now:

    Disposition: switching universe/contribute-fix to universe/waiting-on-upstream — the contribution is merged upstream; what remains is closing the source issue (which still carries stale status/in-progress, queue/claimed, work/assigned labels) and letting the pull-in cycle close this mirror per its contract. Follow-on queue packet for the source-closure step is routed separately (openchamber scope). No code changed in this pass.

  8. added
    universe/waiting-on-upstream
    and removed
    universe/contribute-fix
    on Nov 24, 2026
  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Revalidation (oc-code-01, 2026-11-26): source developing-today-forks/openchamber#2564 is now CLOSED (source close-out evidence: developing-today-forks/openchamber#2564 (comment)); PR #2579 is merged and its close-out task #23643 reads done. This mirror remains OPEN and still carries universe/waiting-on-upstream; per the mirror contract in this issue body, the next pull-in cycle should record the source link and close the mirror. No local implementation is needed. Re-polling mirror state rather than manually closing outside the pull-in contract.

  10. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Revalidation (any-n): source developing-today-forks/openchamber#2564 still CLOSED; mirror still OPEN with universe/waiting-on-upstream, no pull-in closeout comment yet. No local implementation needed; pull-in cycle owns closure. Re-parking with time resume.

  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane DRV-C3 — mirror closed: source work is complete

    Per this mirror's own terms ("when the source issue closes, the next pull-in cycle comments here with the source link and closes this mirror"), closing now on firsthand verification:

    Closing as completed. Key: DRV-C3

  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Closed as implemented.

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

    source/universeuniverse/owneduniverse/waiting-on-upstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions