Add rs-async-zip Zip Traversal issue to DB #1141
Closed
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.
A Zip Traversal issue exists in rs-async-zip. Makes sense to add it. Examples of other libraries that have fixed it can be seen here: https://github.com/snyk/zip-slip-vulnerability#affected-libraries.
To reproduce this issue, you can follow the steps here: https://gist.github.com/snoopysecurity/007503097536b557bc22a7ef24f4d11d
This issue was privately disclosed to the maintainer. He has stated that he has made conscious decision not to mitigate any sort of traversal attacks within the library itself. He has however added a notice to to the example code like here https://github.com/Majored/rs-async-zip/blob/main/examples/fs_parallel_extract.rs#L10 but the library itself does not do any sanitization.