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

feat: Add optional feature to decompress encoded request body #648

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raphaeleidus
Copy link

@raphaeleidus raphaeleidus commented Jul 8, 2021

This PR addresses #577
Because of Zip Bomb attacks this feature is disabled by default and should only be turned on when running httpbin locally as follows

docker run --env UNSAFE_BODY_DECOMPRESSION=1 -p 80:80 kennethreitz/httpbin

There are valid use cases where a server is going to receive payloads only from a trusted source that will be compressed and this can help testing around those.

@raphaeleidus raphaeleidus changed the title feat: Add optional feature to decompress encoded request body #577 feat: Add optional feature to decompress encoded request body Jul 8, 2021
@Starmania
Copy link

Good idea

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.

2 participants