Skip to content

fix(attachments): Reject path traversal - #2165

Merged
jpnurmi merged 1 commit into
masterfrom
jpnurmi/fix/confine-attachment-ref
Oct 5, 2026
Merged

jpnurmi merged 1 commit into
masterfrom
jpnurmi/fix/confine-attachment-ref

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Reject path components in serialized attachment references before TUS upload and cleanup to prevent reads and deletions outside the cache.

Share sentry__path_join_filename with byte-buffer attachment paths and reject non-regular files and symlinks at the TUS consumers.

@jpnurmi
jpnurmi force-pushed the jpnurmi/fix/confine-attachment-ref branch from 512e9a6 to 07dd3a8 Compare October 5, 2026 12:37
Reject path components in serialized attachment references before TUS
upload and cleanup to prevent reads and deletions outside the cache.

Share `sentry__path_join_filename` with byte-buffer attachment paths and
reject non-regular files and symlinks at the TUS consumers.
@jpnurmi
jpnurmi force-pushed the jpnurmi/fix/confine-attachment-ref branch from 07dd3a8 to df994b0 Compare October 5, 2026 13:13
@codecov

codecov Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.33%. Comparing base (9464d49) to head (df994b0).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2165      +/-   ##
==========================================
+ Coverage   75.24%   75.33%   +0.08%     
==========================================
  Files         103      103              
  Lines       28165    28170       +5     
  Branches     5147     5147              
==========================================
+ Hits        21194    21223      +29     
+ Misses       5630     5610      -20     
+ Partials     1341     1337       -4     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi
jpnurmi merged commit e286e6f into master Oct 5, 2026
66 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/confine-attachment-ref branch October 5, 2026 19:03
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