Skip to content

[wpm][P1] index has no signature/pinning and cached-index sources persist into the candidate set #1176

Closed

Description

@caomengxuan666

wpm.cpp:3296-3301 — the client only checks that a 'packages' key exists in the index: no signature, no multi-source quorum, no pinning; artifact sha256 values come from the same index, so a single compromised index source is a self-consistent poison. Worse, wpm.cpp:318-352 'merged_sources' folds sources declared in the CACHED index into the candidate set and persists them — one poisoned fetch keeps injecting new sources. Fix (minimal for 1.4.x): record used_source+index hash at 'wpm index update', warn when the index changes on a non-preferred source, and stop auto-merging cached-index sources. Full signing (minisign/ed25519) can follow. Supply-chain audit P2.

Activity

  1. added a commit that references this issue on Oct 13, 2026
  2. added
    bug
    wpm
    security
    on Oct 17, 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

    bugsecuritywpm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions