Skip to content

feat(installer): enforce HTTPS-only, TLS 1.2+ and a redirect cap on every curl in install.sh #165

Closed

Description

@nc9

Part of #164.

install.sh fetches release metadata, manifest.json, and the binary with bare curl -fsSL. curl's defaults will follow a redirect to plain HTTP and will negotiate whatever TLS version the local build supports. The binary download is checksum-verified against the manifest, but the metadata fetches and the bash re-exec bootstrap have no integrity protection beyond the transport itself.

Add --proto '=https' --proto-redir '=https' --tlsv1.2 --max-redirs 3 to every curl invocation in the script:

  • fetch_with_retry (manifest + binary downloads)
  • both fetches in get_latest_version (releases endpoint and the GitHub API fallback)
  • the failure-report POST in report_error
  • the curl ... | bash re-exec inside the bash handoff at the top of the script

All four flags have been in curl since 7.34 (2013), well below any platform we support.

Acceptance Criteria

  • every curl invocation in install.sh refuses non-HTTPS URLs, including after a redirect
  • every curl invocation enforces a TLS 1.2 minimum
  • redirects are capped at 3
  • curl -fsSL https://install.squirrelscan.com/install.sh | bash still installs successfully on macOS and Linux (glibc and musl)

Activity

  1. added
    enhancement
    P1
    size: S
    security
    on Sep 1, 2026
  2. added 2 commits that reference this issue on Sep 6, 2026
    9493594
    1d5ab86
  3. added a commit that references this issue on Sep 6, 2026
    3aa2e2d
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

    P1enhancementsecuritysize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions