🚨 [security] Update rubyzip: 1.2.1 → 1.2.2 (patch)
**Welcome to Depfu** 👋
This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.
After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.
[Let us know](mailto:hi@depfu.com) if you have any questions. Thanks so much for giving Depfu a try!
Advisory: CVE-2018-1000544 Disclosed: June 14, 2018 URL: https://github.com/rubyzip/rubyzip/issues/369
Directory Traversal in rubyzip
rubyzip version 1.2.1 and earlier contains a Directory Traversal vulnerability
in Zip::File component that can result in write arbitrary files to the filesystem.
If a site allows uploading of .zip files, an attacker can upload a malicious file
which contains symlinks or files with absolute pathnames "../" to write arbitrary
files to the filesystem.
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
↗ ️ rubyzip (indirect, 1.2.1 → 1.2.2) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 54 commits:
Merge pull request #376 from jdleesmiller/fix-cve-2018-1000544
Bump version to 1.2.2
Bump version to 1.3.0
Bump version to 2.0.0
Expand from root rather than current working directory
Disable symlinks and check for path traversal
Consolidate path traversal tests
Add jwilk's path traversal tests
Trigger CI again
Move jruby to allow failures matrix till crc uint 32 issues are resolved
Fix CVE-2018-1000544 symlink path traversal
Fix CVE-2018-1000544 absolute path traversal
Fix jruby version
Merge pull request #363 from hainesr/fix-dir-glob
When globbing in ZipFSDir, take CWD into account.
Pass glob through from ZipFileNameMapper.
Merge pull request #361 from hainesr/quiet-tests
Merge pull request #358 from idoru/handle-gpbit-3
Turn off all terminal output in all tests.
Handle stored files with general purpose bit 3 set
Merge pull request #353 from pnomolos/pnomolos/fix_stringio
Merge pull request #352 from tricknotes/bump-ruby-versions
Merge pull request #355 from pnomolos/pnomolos/fix-rubocop-breakage
Fix regression caused by Rubocop cleanup
Added fix for calling 'close' on a StringIO-backed zip file, and specs
Bump Ruby versions on Travis CI
Merge pull request #350 from olleolleolle/patch-1
Travis: Typo
Travis: Workaround a rbx-3 autoload issue
Merge pull request #345 from olleolleolle/patch-1
Merge pull request #346 from olleolleolle/patch-2
Merge branch 'master' into patch-2
Merge pull request #347 from swamp09/ci_against
CI against Ruby 2.2.8, 2.3.5, and 2.4.2
Travis: typo
Travis: Try using rbx-3
Travis: update RubyGems
Travis: drop oraclejdk-7
Travis: use JRUBY_OPTS="--debug"
Travis: use pre-installed Travis rubies
README: Use a blockquote to make text readable
Merge pull request #325 from aeroastro/feature/tempfile-directory
Merge pull request #326 from aeroastro/feature/readme-improvement
Merge pull request #340 from alsor/force-entry-names-encoding-option
Merge branch 'master' into force-entry-names-encoding-option
add option to force entry names encoding
Make naming on README more consistent
Merge pull request #321 from gaurish/patch-1
Merge pull request #332 from aeroastro/feature/rubocop-update
Apply automatic correction by rubocop
Disable Style/MutableConstant because existent code relies on it
Add rubocop dependency and correct settings
Save temporary files to a temporary directory
File.join() is our friend for joining paths
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase
.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)