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 CSRF protection to all modification requests #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Hiryus
Copy link

@Hiryus Hiryus commented Jun 13, 2019

This PR adds a random token to all modification requests to prevent CSRF attacks (see https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF) for a complete description of CSRF).

I was not able to run all tests though (I don't have any active directory handy especially).

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.6%) to 79.154% when pulling bc049ee on Hiryus:csrf-protection into 856157a on kakwa:master.

@Hiryus Hiryus changed the title WIP: add CSRF protection to all modification requests Add CSRF protection to all modification requests Jun 13, 2019
@Hiryus
Copy link
Author

Hiryus commented Jun 13, 2019

The library secret was added in python 3, but there is a back-port named python2-secrets if needed. Not sure how to use it only when using python 2 though...

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.

None yet

3 participants