You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been thinking on ways to check the integrity of the files before and after the decompression method takes place. Even though the main goal of the library is decompress files, I think it is important to not forget about some basic security measures. I would be interested to know if this would be used and how.
These would be a list of nice-to-have features:
Before decompression:
Check that the file is a valid format file. Some commands provide this option and for the rest, an attempt to open the file could determine if it's correct or not.
Provide an expected checksum for the file and check that is correct.
After decompression:
Provide a list of files that should be in the decompressed folder and check that corresponds with the decompressed files.
Provide an expected checksum for the decompressed structure and check that is correct.
I really like this proposal. This is something that we definitely would use for the Symfony installer. As a matter of fact, the checksums for all the Symfony components are publicly available in this repo.
This is an example of the checksums published for the Filesystem component version 2.5.6, so we have the files, ZIP and other checksums to verify:
I have been thinking on ways to check the integrity of the files before and after the decompression method takes place. Even though the main goal of the library is decompress files, I think it is important to not forget about some basic security measures. I would be interested to know if this would be used and how.
These would be a list of nice-to-have features:
Before decompression:
format
file. Some commands provide this option and for the rest, an attempt to open the file could determine if it's correct or not.checksum
for the file and check that is correct.After decompression:
checksum
for the decompressed structure and check that is correct.Any comments? /cc @javiereguiluz
The text was updated successfully, but these errors were encountered: