Skip to content

identity: pkgs/identity/default-deploy.sh pipes an unpinned remote script into bash and nothing uses it #12669

Closed

Description

@dezren39

Finding

pkgs/identity/default-deploy.sh:3 is curl -L default.computer | bash -s -- "$@". It pipes an unpinned remote script straight into bash, with no checksum and no HTTPS-only restriction. The script is not referenced anywhere in the repo: git grep -n "default-deploy" matches only the file itself.

Context checked:

  • pkgs/identity/deploy.sh and init.template.sh do not call it.
  • pkgs/identity/README.md does not mention it.
  • The only curl | sh installers the repo documents are separate, and they are upstream-provided.

Why it matters

  • Security: anyone who controls default.computer (DNS, redirect with -L, or a compromised host) gets code execution on any machine that runs this file. Nothing in the repo uses it, so it adds risk with no benefit.
  • Cleanup: an orphaned deploy script in a package directory misleads readers about how identity is deployed.

Suggested fix shape

Delete pkgs/identity/default-deploy.sh, since nothing references it. If a caller is found, replace the pipe with download, pin to a version and SHA-256, and run with curl --proto '=https' --tlsv1.2 -fsSL.

Activity

  1. added
    kind/securitySecurity issue or security hardening
    app/identityPackage/app: identity (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Nov 22, 2026
  2. developing-today commented on Nov 22, 2026

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

    @dezren39
    MemberAuthor

    Claim — Lane KT (archer), 2026-11-23. Taking #12669: pkgs/identity/default-deploy.sh pipes an unpinned remote script into bash and nothing in the repo references it. Plan: verify the premise fresh on current main (file content + repo-wide reference search), delete the file in a laptop worktree off main, PR, merge once verified. If a live caller turns up, I will stand down and record it instead.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane KT — premise VERIFIED, work HELD for Drew's item-specific go-ahead, 2026-11-23.

    Premise verified first-hand via read-only API on current main (695e20af9382):

    • pkgs/identity/default-deploy.sh exists on main; its full content is the 3-line script whose payload line pipes an unpinned remote script (curl -L on a bare hostname) straight into bash -s. No checksum, no HTTPS-only restriction — exactly as the issue states.
    • GitHub code search over this repo for the script's name returns 0 matches — nothing references it by name in any file's contents, matching the issue's git grep finding.

    Why held: reading the file's content tripped a platform execution-risk check (unsurprising — the file is a remote-code-execution pipe). The remaining work — a laptop worktree checkout containing this file, the delete, commit, push, PR, merge — is exactly the class of step that tonight's standing rule reserves for Drew's plain-words approval of this specific item. Lane KT has NOT created a worktree, NOT checked anything out, and NOT run the script.

    Ready to execute on Drew's go-ahead: delete pkgs/identity/default-deploy.sh in a worktree off main, one surgical commit, PR, merge, close this issue with the verification record above. Nothing else in pkgs/identity needs to change per the issue's own context check (deploy.sh, init.template.sh, README do not call it).

  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Takeover claim — Lane XT (archer), 2026-11-23. Adopting Lane KT's orphaned claim on #12669: KT claimed at 07:35:29Z, verified the premise, and stopped on a platform execution-risk flag at 07:36:00Z; no activity since (lane ended, well over an hour).

    Drew batch-approved all outstanding flag holds on 2026-11-23 ("Approve all the flag holds listed above"), which covers this item. Landing exactly per KT's prepared scope: delete pkgs/identity/default-deploy.sh in a worktree off main (nothing references it — verified by KT via code search and re-verified by me at landing), one surgical commit, PR, merge, close with the verification record. The script itself will not be run.

  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done — Lane XT (archer), 2026-11-23. #12669 CLOSED as completed.

    Landed under Drew's 2026-11-23 batch approval of all outstanding flag holds, adopting Lane KT's orphaned claim and executing its prepared scope exactly:

    • PR #13339 merged — merge commit bd74d8f5c39ac666513ec8777e53c26aa1871a71, head SHA-guarded at 4f3977d7d1a887c48191b1a7e355a66eca9d0b0f. Single change: pkgs/identity/default-deploy.sh deleted (the 3-line script whose payload piped an unpinned remote script into bash -s). The script was never run.
    • Premise re-verified at landing on main ba7ea99e9fe: file present at HEAD before the delete; git grep "default-deploy" over file contents returns zero matches — nothing references it (consistent with KT's earlier code-search verification; deploy.sh, init.template.sh, and the pkgs/identity README do not call it).
    • Post-merge read-back: GET contents/pkgs/identity/default-deploy.sh?ref=main → 404 Not Found — the file is gone from main. Issue state read back closed/completed.

    Cleanup note: the laptop channel flapped down immediately after the merge, so the local worktree ~/wt-lane-xt-12669 and local branch lane-xt-12669 on the laptop still need removal when the channel recovers (bookkeeping only; the change itself is fully landed and verified). No git stash used; primaries untouched.

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

    app/identityPackage/app: identity (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/securitySecurity issue or security hardeningstatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions