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 Django request body from payload. It can contain sensitive data. #174

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

sabw8217
Copy link

Post requests can include sensitive data in the request body. Sensitive POST params can be scrubbed from the request.POST attributes but not from the request body itself.

I think this works for other frameworks (werkzeug, bottle) because the body is only included if it's JSON and can then be scrubbed, but the django body is just a string.

Copy link
Contributor

@ezarowny ezarowny left a comment

Choose a reason for hiding this comment

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

I'm good with this. HttpRequest.POST doesn't contain file information but that can easily be added with HttpRequest.FILES. If someone really wants the HttpRequest.body attribute back in the payload there are ways we could do it.

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