Skip to content

[v3-2-test] Validate GCSToSambaOperator destination path stays within destination_path (#67857)#67913

Closed
github-actions[bot] wants to merge 1 commit into
v3-2-testfrom
backport-bc1df02-v3-2-test
Closed

[v3-2-test] Validate GCSToSambaOperator destination path stays within destination_path (#67857)#67913
github-actions[bot] wants to merge 1 commit into
v3-2-testfrom
backport-bc1df02-v3-2-test

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jun 2, 2026

GCS object names are read from the source bucket and may contain ".."
segments. GCSToSambaOperator._resolve_destination_path joined the object
name onto the configured destination_path without normalisation, so a
crafted object name could resolve an SMB write target outside the intended
directory. Normalise the resolved path and refuse to write when it falls
outside destination_path.
(cherry picked from commit bc1df02)

Co-authored-by: Jarek Potiuk jarek@potiuk.com
Generated-by: Claude Opus 4.8 (1M context)

… destination_path (#67857)

GCS object names are read from the source bucket and may contain ".."
segments. GCSToSambaOperator._resolve_destination_path joined the object
name onto the configured destination_path without normalisation, so a
crafted object name could resolve an SMB write target outside the intended
directory. Normalise the resolved path and refuse to write when it falls
outside destination_path.
(cherry picked from commit bc1df02)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Generated-by: Claude Opus 4.8 (1M context)
@eladkal
Copy link
Copy Markdown
Contributor

eladkal commented Jun 2, 2026

This is provider PR does not need cherry pick

@eladkal eladkal closed this Jun 2, 2026
@eladkal eladkal deleted the backport-bc1df02-v3-2-test branch June 2, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants