Skip to content

Docs audit: supply-chain and build gaps (INSTALL, INSTALL-CMAKE, GIT-INFO) #23438

Closed

Description

@dvddv9

docs/INSTALL.md, docs/INSTALL-CMAKE.md, docs/GIT-INFO.md

Activity

  1. dvddv9 commented on Oct 16, 2026

    @dvddv9
    ContributorAuthor

    Docs audit: supply-chain and build gaps (INSTALL, INSTALL-CMAKE, GIT-INFO)
    Summary
    Audit of three curl build-related docs (docs/INSTALL.md,
    docs/INSTALL-CMAKE.md, docs/GIT-INFO.md) found critical gaps in
    supply-chain verification and CI-ready defaults. For a TLS client with
    ~10^9 installs, these gaps are not theoretical.
    Files affected
    docs/INSTALL.md -- build from source (autotools, CMake, vcpkg)
    docs/INSTALL-CMAKE.md -- CMake-specific options
    docs/GIT-INFO.md -- build from git checkout
    Findings

    1. INSTALL.md -- no source verification (critical)
      No step for SHA256 checksum or GPG signature of downloaded tarballs.
      User can wget from a mirror and tar xzf without verification.
      Compromised mirror / MITM / CDN takeover -> backdoored curl.
      Proposed fix (3 lines before tar xzf):
      sha256sum -c curl-X.Y.Z.tar.gz.sha256
      gpg --verify curl-X.Y.Z.tar.gz.asc curl-X.Y.Z.tar.gz

    2. INSTALL-CMAKE.md -- BUILD_TESTING=ON contradicts tests not supported (critical)
      Doc states tests do not work with CMake, but BUILD_TESTING=ON is the
      default. ctest runs, fails silently, CI gets false green.
      Proposed fix: default BUILD_TESTING=OFF until tests are supported;
      document ON as explicit opt-in.
      Also: CURL_CA_BUNDLE=auto + CURL_CA_FALLBACK=OFF -> silent HTTPS
      failure if system CA is missing. Recommend CURL_CA_FALLBACK=ON.

    3. GIT-INFO.md -- no version pinning (important)
      No minimum versions for autotools / OpenSSL; no make check step;
      no CI sync check with docs/DEPENDENCIES.md.
      Proposed fix: state min versions (autoconf >= 2.69, automake >= 1.16,
      libtool >= 2.4, OpenSSL >= 3.0.0) + add make check + CI link-linter.
      Why it matters
      TLS client = trust anchor for billions of connections.
      Supply-chain attacks (XZ Utils 2024, event-stream 2018) prove this is
      not theoretical.
      OpenSSF Gold requires source verification and reproducible builds.
      Related
      Vishap audits: sess-2026-10-16-111023-03 (INSTALL),
      sess-2026-10-16-111023-04 (INSTALL-CMAKE),
      sess-2026-10-16-090837-02 (GIT-INFO).
      RN-6, SEC-1, FP-1 (critical); RN-1, RN-3, RN-8, RN-11 (important).

  2. bagder commented on Oct 16, 2026

    @bagder
    Member

    What exactly is the point with this?

    We insist you report and speak as a human.

  3. dvddv9 commented on Oct 16, 2026

    @dvddv9
    ContributorAuthor

    Honestly? I'm building an LLM-based docs analyzer (Vishap) and
    wanted to test it on a real, mature project. curl was the obvious
    choice. I got excited about the output and posted it without
    thinking about your time. That was wrong.

    I'll close the issues and leave you alone.

    -- David

  4. bagder commented on Oct 16, 2026

    @bagder
    Member

    We welcome issues and help, but we require that you speak with us as a human and you avoid just dumping tons of text on us. In particular tons of text that could've been stated in two paragraphs.

  5. dvddv9 commented on Oct 16, 2026

    @dvddv9
    ContributorAuthor

    Thanks, Daniel. Fair.

    One concrete finding, short version: docs/INSTALL.md tells users to
    download a tarball and tar xzf it, with no SHA256/GPG verification
    step. XZ Utils 2024 showed where that leads. The fix is two lines in
    the doc. I can send a PR for just this, if you want it. If not, no
    worries -- I'll leave it.

    Thanks for curl, and sorry for the earlier noise.

    -- David

  6. bagder commented on Oct 16, 2026

    @bagder
    Member

    Please, send a PR if you have improvements. I think we should encourage verifying the tarball before using it.

    (In the XZ case however it was the maintainer shipping the backdoored release so checking the signature/checksum did not help.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions