Skip to content
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

Remove bomb.zip test file to stop anti-virus noise #424

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

picatz
Copy link
Contributor

@picatz picatz commented Mar 10, 2023

This PR aims to fix #419. The bomb.zip file was useful to verify the zip bomb protections worked properly, but is not required to verify our mitigations work. Including a real zip bomb lead to confusion and reports of anti-virus causing issues for users. Instead, a zip file is created inline with the test before verifying the decompression limit works.

This file was useful to verify the zip bomb protections worked properly against a real "zip bomb", but is not required to verify out mitigations works in our tests.

Including a real zip bomb lead to confusion and reports of anti-virus causing issues for users.
@picatz picatz requested review from eastebry, tgross and nywilken March 10, 2023 19:36
@picatz
Copy link
Contributor Author

picatz commented Mar 10, 2023

cc @nywilken we probably need to get this same change landed in v2 sometime in the near future.

@nywilken
Copy link
Contributor

cc @nywilken we probably need to get this same change landed in v2 sometime in the near future.

Sounds good thanks for the detailed description. I like the approach. This change can be easily cherry-picked into v2 once merged.

Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nywilken
Copy link
Contributor

cc @nywilken we probably need to get this same change landed in v2 sometime in the near future.

Sounds good thanks for the detailed description. I like the approach. This change can be easily cherry-picked into v2 once merged.

@picatz picatz merged commit bdad9ba into main Mar 13, 2023
@picatz picatz deleted the fix-av-reports branch March 13, 2023 15:15
nywilken pushed a commit that referenced this pull request Mar 13, 2023
Remove `bomb.zip` test file to stop anti-virus noise
nywilken added a commit that referenced this pull request Mar 13, 2023
* Merge pull request #424 from hashicorp/fix-av-reports

Remove `bomb.zip` test file to stop anti-virus noise

* Update call to WriteFile

---------

Co-authored-by: Kent 'picat' Gruber <kent@hashicorp.com>
lazyfrosch added a commit to lazyfrosch/terraform-provider-rancher2 that referenced this pull request May 11, 2023
This is a recommended fix to avoid security alerts downloading the
current release, that contained a suspicious test ZIP file.

see:
- https://github.com/hashicorp/go-getter/releases/v1.7.1
- hashicorp/go-getter#424
- hashicorp/go-getter#419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anti-viruses report the bomb.zip test file as malicious
2 participants