Skip to content

fix: add sanitize_path for files_from path traversal prevention - #2750

Merged
oferchen merged 3 commits into
masterfrom
fix/filter-path-security
Mar 17, 2026
Merged

oferchen merged 3 commits into
masterfrom
fix/filter-path-security

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Adds sanitize_path module mirroring upstream util1.c:sanitize_path() and applies it to resolve_files_from_paths() matching upstream flist.c:2264. Includes comprehensive adversarial path input tests and security audit of existing protections.

@github-actions github-actions Bot added the bug Something isn't working label Mar 16, 2026
@oferchen
oferchen force-pushed the fix/filter-path-security branch from ecf680d to 855136d Compare March 17, 2026 01:16
@oferchen
oferchen merged commit ec1b4b2 into master Mar 17, 2026
31 checks passed
@oferchen
oferchen deleted the fix/filter-path-security branch March 17, 2026 04:49
oferchen added a commit that referenced this pull request May 1, 2026
* fix: add sanitize_path for files_from entries to prevent path traversal

* formatting

* fix: correct module path in sanitize_path tests
oferchen added a commit that referenced this pull request May 5, 2026
* fix: add sanitize_path for files_from entries to prevent path traversal

* formatting

* fix: correct module path in sanitize_path tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant