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

Add Python rule on using tarfile expanding untrusted members #216

Open
ericwb opened this issue Jan 25, 2024 · 0 comments
Open

Add Python rule on using tarfile expanding untrusted members #216

ericwb opened this issue Jan 25, 2024 · 0 comments
Labels
enhancement New feature or request new rule Enhancement request for a new rule

Comments

@ericwb
Copy link
Contributor

ericwb commented Jan 25, 2024

Is your feature request related to a problem? Please describe.
Care must be taken using tarfile to prevent expanding a tar with untrusted members.

Describe the solution you'd like
The tarfile functions extractall() and extract() warn about never extracting archives from untrusted sources without prior inspection. Set filter='data' to prevent the most dangerous security issues, and read the Extraction filters section for details.

Describe alternatives you've considered
n/a

Additional context

Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.

@ericwb ericwb added the enhancement New feature or request label Jan 25, 2024
@ericwb ericwb added the new rule Enhancement request for a new rule label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new rule Enhancement request for a new rule
Projects
None yet
Development

No branches or pull requests

1 participant