Skip to content

client: Win32 name aliasing (trailing dot/space, :, 8.3 names) can make two bundle entry paths one file #2746

Closed

Description

@thiras

Found in review of the #2691 fix. Not yet verified on a Windows host.

#2691 makes a reader reject a bundle manifest whose entry paths name one file on a case- or normalization-insensitive file system (decdn_client::bundle::path_collision). Win32 path handling joins more names than case alone:

  • README and README. (trailing dot)
  • README and README (trailing space)
  • README and README::$DATA (stream syntax; : in a segment)
  • a long name and its 8.3 short name (LONGFI~1.TXT)

safe_join (crates/client/src/bundle/engine.rs) and origin import's validate_relpath (crates/cli/src/commands/manifest.rs) accept each of these: Path::components() returns every one as a single Normal component. If cap-std reaches CreateFileW with normal Win32 path normalization, two entries can land at one file on Windows and the #2691 skip-set poisoning returns there. cap-primitives 4.0.3's Windows path_has_trailing_dot returns false on purpose, so it does not appear to refuse them.

  • Confirm on Windows whether README / README. / README resolve to one file through Landing (cap-std)
  • If they do: reject a segment that ends in . or a space, or that contains :, in safe_join and validate_relpath on every platform (or fold them in path_key), and add a Path-safety rule to adr/appendix-bundles.md
  • Decide on 8.3 short names (~N segments): reject, or document why they cannot collide
  • Tests

Activity

  1. added
    kind:security
    area:client
    on Oct 29, 2026
  2. self-assigned this
    on Oct 29, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 29, 2026
  4. 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:security

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions