-
Notifications
You must be signed in to change notification settings - Fork 17
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
Disable CSRF checks on some most-used forms #1136
Conversation
I think we can safely say this PR is a great success. 👍🏽 |
68a6732
to
01ae1ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should link this PR or the CSRF issue if we have on in the comments, so we can get the context of the problems. Additionally should the csrf token not also be removed on the forms? Or do you really just want to disable the verification of the tokens?
I can add indeed this PR number.
Officially we could remove all the CSRF code from the controller & twig templates if we really want to indeed. However, my aim was to "temporally" (for the foreseeable future) the CSRF checks on the less critical areas, solving the 500 errors and improve the user experience overall. Until we know how to better solve the issue... (if at all). |
Done! |
We see a lot of issues with CSRF in your forms with Mbin... We disable CSRF checks for now on the forms that doesn't have actions that seems very harmful, even if it would be exploited by a CSRF attack..
Especially on the following CSRF IDs:
Since the impact on CSRF attacks on these kind of actions are minimal and slim. I will disable the validate check for now in the controller code. Until we fully have resolved this issue, since it affects a lot of people!
This is trying to resolve bullet 13th at: #1119