Skip to content

client: duplicate or case-folded bundle manifest paths poison the skip set #2691

Closed

Description

@thiras

Source: GHSA-3c38-gqx6-v7fm (M7, internal audit at 772c8f4, re-confirmed on main). Related but distinct: #2472.

BundleManifest::parse (crates/client/src/bundle.rs:146-165) never rejects duplicate paths, or paths that differ only in case. safe_join checks path components only. resolve_disk_state keys the skip set by path alone (state.skip.insert(en.path.clone()), crates/client/src/bundle/engine.rs:310-322). plan_slots then skips any entry whose path is in the set (:464). Take a manifest with {p → A} and {p → B}, where A is already on disk. The B entry is skipped too, so a later pull reports success while stale or foreign bytes stay at p. On macOS and Windows, case-folded variants of a path give the same result.

  • Reject manifests with duplicate paths, or with paths that collide under case folding, at parse time
  • Key the skip set by (path, hash)
  • Tests for both cases

Activity

  1. added
    kind:security
    prio:medium
    area:client
    on Oct 28, 2026
  2. added this to the v0.3 milestone on Oct 28, 2026
  3. self-assigned this
    on Oct 29, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 29, 2026
  5. moved this from In progress to Done in deCDNon Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clientkind:securityprio:medium

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions