noCV
CBACK-107 · Capture coherently

Refuse archive restore paths outside the selected target directory

Practice briefBugAdvanced

A crafted backup path can escape the restore root. Validate resolved destinations before creating files.

Focused work estimate
2h 30m + prerequisites
Priority in the scenario
High
Engineering practice
Filesystem · Security

Estimated field mix

  • Security60%
  • Storage systems40%

Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.

Your next step

Review it, then add it to your workspace.

The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.

Project context

Fictional archive Alder backs up synthetic document metadata and generated blobs into a dedicated local directory. No real organizational data or cloud accounts are required.

Setup prerequisites

  • Create synthetic metadata and generated blob fixtures.
  • Provide isolated source backup and restore directories.

Preceding work

Complete these dependencies, or supply their agreed outputs before taking this ticket.

Acceptance criteria

  • Traversal and absolute paths fail
  • Symlink escape is rejected by adapter policy
  • Valid files remain inside target

Implementation constraints

  • Use a dedicated empty fixture directory.

Verification to include

  • Restore valid nested object
  • Attempt parent traversal or symlink escape

Deliverables

  • Restore-path boundary and cases

Rollout and recovery

Abort restore before writes if containment cannot be established.

Value of the work

For the engineer: Practice consistent snapshots and recoverable restoration.

For the team: Inspect whether backup success can be substantiated by a usable restore.

Evidence boundaries

Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.

Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.