This PR contains the FileCompressionHandler class which takes the absolute location of a zip file that should be extracted at the same location or the absolute location of a folder that should be zipped at the same location.
The program automatically detects that the file to be extracted or to be zipped by simply checking its extension.
The program addresses the widely-spread Zip Slip vulnerability while unzipping archives. Zip Slip is a critical vulnerability
that can harmfully create or modify sensitive files outside the working directory.
Reference Issue number #237
issue_no must refer to the issue related to this PR, visit here
Type of change
Choosing one or more options from the following as per the nature of your Pull request.
NOTE: Check boxes using [x]
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Documentation Update
Checklist:
[x] I have named my files and folder, according to this project's guidelines.
[x] My code follows the style guidelines of this project.
[x] My Pull Request has a descriptive title. (not a vague title like Update index.md)
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have created a helpful and easy to understand README.md, with problem description and my name.
[ ] I have included a requirements.txt file (if external libraries are required.)
[x] My changes do not produce any warnings.
[x] I have starred this repository.
[ ] I have added a working sample/screenshot of the script.
[x] I have checked for trailing spaces in file names and none have them.
Description
This PR resolves #237
This PR contains the FileCompressionHandler class which takes the absolute location of a zip file that should be extracted at the same location or the absolute location of a folder that should be zipped at the same location.
The program automatically detects that the file to be extracted or to be zipped by simply checking its extension.
The program addresses the widely-spread Zip Slip vulnerability while unzipping archives. Zip Slip is a critical vulnerability
that can harmfully create or modify sensitive files outside the working directory.
Reference Issue number #237
issue_no
must refer to the issue related to this PR, visit hereType of change
Choosing one or more options from the following as per the nature of your Pull request. NOTE: Check boxes using [x]
Checklist:
Update index.md
)README.md
, with problem description and my name.