Skip to content

Path, archive and file-name safety: shared helper and call sites (family #3847) - #3900

Merged
accesswatch merged 1 commit into
mainfrom
fix-3847-safe-paths
Nov 30, 2026
Merged

accesswatch merged 1 commit into
mainfrom
fix-3847-safe-paths

Conversation

@accesswatch

Copy link
Copy Markdown
Contributor

Part of #3847.

Builds the shared helper quill/core/safe_paths.py (safe_join / resolve_within / safe_filename / is_device_name / unique_name / safe_extract_zip / safe_extract_tar with member-count, total-size and ratio caps, refusing traversal, absolute, drive-relative, UNC, NTFS streams, device names, symlinks and junctions) and converts the call sites below. Each has a regression test (tests/unit/core/test_safe_paths.py, tests/unit/core/test_safe_paths_call_sites.py).

Converted: vosk, model_mirrors, release_assets, updates (portable), ffmpeg, piper and Scribe DAISY extractors; sound packs; Radio and Cast backup restore; setup import; mobi pictures; WordPress snapshot media names, cross-site and folder-import pictures, static archive slugs; batch speech same-stem outputs; publishing secret file names.

Fixes #2662
Fixes #2442
Fixes #2740
Fixes #3344
Fixes #2779
Fixes #2633
Fixes #3131
Fixes #3275
Fixes #3652
Fixes #3073

The three highs (#2650, #3293, #3349) were already fixed on main (#3887 and the batch_output_plan work); nothing to do there.

🤖 Generated with Claude Code

…ily #3847)

New quill/core/safe_paths.py: safe_join/resolve_within (traversal, drive, UNC,
NTFS stream, device names, links), safe_filename, unique_name, and contained
safe_extract_zip/safe_extract_tar with member, size and ratio caps.

Converted: vosk/model_mirrors/release_assets/updates/ffmpeg/piper/scribe daisy
extractors, sound packs, radio/cast backups, setup import, mobi pictures,
snapshot media names, cross-site and folder-import pictures, static archive
slugs, batch speech same-stem outputs, publishing secret file names.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@accesswatch
accesswatch merged commit 5c1d800 into main Nov 30, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant