chaos testing: jinja2.exceptions.TemplateNotFound: csrf_error.html #8
Closed
opened 3 years ago by decentral1se
·
2 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Uploaded the attached zip for step 1 and clicked upload. (didn't choose theme!)
csrf error you should see all the time still. because the development server of flask can't properly handle anti-csrf tokens. going back and forth between an error page and redoing your actions, causes one.
working for a while now with an application with CSRF (cross-site request forgery) tokens in place.
When you are developing a flask application and you make any edit to the code, the application restarts, giving a new CSRF token. Your browser is still open and you are given a CSRF error, since the browser session has the wrong token.
It could also be because you simply restarted the application but not your browser session.
since Flask works with routes, that can just be found in de the code. Anyone can fire a somewhat correct post request at them and see what happens. So CSRF is pretty crucial for Flask security.