Commit Graph
3 Commits
Author SHA1 Message Date
Jason Ginchereau 6e8379ea7a Implement PAX header validation and path safety checks in tar extraction
- Added a new test suite for parser-differential bypass detection in tar archives.
- Introduced length-correct PAX extended-header re-parsing to catch discrepancies between node-tar and system tar.
- Enhanced the listAndValidate function to return approved names alongside violations for better extraction control.
- Implemented checks for unsafe characters and glob metacharacters in entry paths.
- Updated the tar extraction logic to utilize an allow-list for approved entries when path validation is in error mode.
- Added utility functions for writing temporary allow-list files for system tar extraction.
2026-06-19 09:17:41 -10:00
Jason Ginchereau cc4da7ddff Fix lint issues 2026-06-17 14:39:18 -10:00
Jason Ginchereau 998c5ad7fd feat: optional path validation during cache restore 2026-06-17 14:39:14 -10:00