Skip to content

fix(cmd/rofl/build): Fix path sanitization while extracting templates#572

Merged
kostko merged 1 commit into
masterfrom
kostko/fix/rofl-artifacts-tar-symlinks
Aug 13, 2025
Merged

fix(cmd/rofl/build): Fix path sanitization while extracting templates#572
kostko merged 1 commit into
masterfrom
kostko/fix/rofl-artifacts-tar-symlinks

Conversation

@kostko
Copy link
Copy Markdown
Member

@kostko kostko commented Aug 13, 2025

An improved version of #430 which works for our use case. We cannot just forbid symlinks that point outside the temporary root directory because these are templates for the root filesystem and such symlinks are normal. However, for the mitigation to work, it is enough to ensure that we never use such symlinks during extraction when writing/creating destination files.

@kostko kostko requested a review from ptrus August 13, 2025 16:33
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 13, 2025

Deploy Preview for oasisprotocol-cli canceled.

Name Link
🔨 Latest commit 217beb4
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-cli/deploys/689cbe5121be1800081d64b0

@kostko kostko merged commit ab2b71a into master Aug 13, 2025
5 checks passed
@kostko kostko deleted the kostko/fix/rofl-artifacts-tar-symlinks branch August 13, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants