Repository navigation
s2sx: Clean symlink targets - #1163
Conversation
When self-extractor is extracting files from TAR validate that symlinks remains inside the destination. Executables are already expected to be trusted and since they are embedded with the archive, so there really is no breach of trust. This change is mainly to discourage false/pointless AI reports.
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: π Files selected for processing (1)
π WalkthroughWalkthroughPath traversal protections are added to tar extraction in the s2sx unpack tool. Symlink targets are now resolved relative to the symlink's directory and validated against the destination root. Hardlink targets are validated with ChangesPath Traversal Hardening in Tar Extraction
Estimated code review effortπ― 2 (Simple) | β±οΈ ~10 minutes π₯ Pre-merge checks | β 4 | β 1β Failed checks (1 warning)
β Passed checks (4 passed)
β¨ Finishing Touchesπ Generate docstrings
π§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
When self-extractor is extracting files from TAR validate that symlinks remains inside the destination.
Executables are already expected to be trusted and since they are embedded with the archive, so there really is no breach of trust.
This change is mainly to discourage false/pointless AI reports.
Summary by CodeRabbit