-
Notifications
You must be signed in to change notification settings - Fork 4
Next patch release (v2.1.2) #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Pfeil
wants to merge
22
commits into
main
Choose a base branch
from
development
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
77a448c
chore(deps): bump jacksonVersion from 2.22.0 to 2.22.1
dependabot[bot] eb44111
chore(deps): update actions/setup-java action to v5.6.0
renovate[bot] 94cb502
fix(deps): update dependency org.junit:junit-bom to v6.1.2
renovate[bot] 20052d3
test: write tests to detect missing paths when reading a crate
Pfeil 2a1f0e1
docs: add javadoc to DataEntity.getPath
Pfeil ffe5b91
fix: writing files uses decoded ID of an entity
Pfeil ee2a7f6
fix: detect files matching the decoded or encoded id of an entity
Pfeil a0564bb
fix(test): avoid invalid paths on windows in a test
Pfeil 14d9f10
test: loading and saving "heals" filename in crates
Pfeil 3f51510
test: all writers write decoded ids as filenames
Pfeil 43fe41f
fix: zip stream writer writes decoded filenames
Pfeil 3898149
chore(deps): update actions/checkout action to v7.0.1
renovate[bot] 668309e
chore(deps): update github/codeql-action action to v4.37.3
renovate[bot] e75c9b2
test: avoid emoji in filenames because it causes issues on windows
Pfeil d596dcc
test: avoid pipe in filenames because it might cause issues on windows
Pfeil e370c45
Revert "test: avoid emoji in filenames because it causes issues on wi…
Pfeil 90f814f
Merge pull request #353 from kit-data-manager/320-encoded-paths-are-n…
Pfeil f39d27d
Merge pull request #354 from kit-data-manager/renovate/actions-checko…
Pfeil 996b324
Merge pull request #351 from kit-data-manager/dependabot/gradle/jacks…
Pfeil 60b3446
Merge pull request #347 from kit-data-manager/renovate/github-codeql-…
Pfeil cc14008
Merge pull request #346 from kit-data-manager/renovate/junit-framewor…
Pfeil 3cd9985
Merge pull request #343 from kit-data-manager/renovate/actions-setup-…
Pfeil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🔴 Critical | ⚡ Quick win
Unvalidated decoded id used to build output paths in both writer strategies. Both writers decode the entity id and use it directly to construct a destination location, without the containment check that
CrateReader.checkFolderHasFileapplies on the read side for the same reason ("defence-in-depth: ensure we are still inside the crate folder"). A decoded id that is absolute, or contains../, escapes the intended output location (arbitrary file write on folder-write, Zip Slip on zip-write).src/main/java/edu/kit/datamanager/ro_crate/writer/WriteFolderStrategy.java#L72-L82: after computingfilename, normalize/resolve against the destination folder and reject (or throw) if the result doesn't stay under it, mirroring the reader'sstartsWithguard.src/main/java/edu/kit/datamanager/ro_crate/writer/WriteZipStreamStrategy.java#L152-L171: reject (or strip) decoded filenames containing traversal segments/absolute markers before using them to build the zip entry name.📍 Affects 2 files
src/main/java/edu/kit/datamanager/ro_crate/writer/WriteFolderStrategy.java#L72-L82(this comment)src/main/java/edu/kit/datamanager/ro_crate/writer/WriteZipStreamStrategy.java#L152-L171🤖 Prompt for AI Agents