Open gunchleoc opened 5 years ago
(by franku) Thanks for your bug report.
I can confirm this with these steps (Opera):
The problem is that the csrf-token cookie is updated in step 3 (login). Sending a request through the browsers tab (showing not logged in) uses the old csrf value then.
I guess the underlying problem is that the view used in the navigation bar uses a redirect.
(by w-aaaaa) Good google search and I spot a link: https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Persona/The_implementor_s_guide/Problems_integrating_with_CRSF_protection#The_problem_with_Persona
Hope it can be the solution! :)
(by franku) Thanks for the link, which describes the problem very well :)
The proposed solution looks good to me. I am working currently on other things, so this bug has to wait for fixing.
I have spot a bug:
CSRF verification failed. Request aborted. when I was searching from the website (simple search). But I couldn't reproduce it until today.
And today I have noticed two things:
Ad 1.: I have checked from FireFox debug engine that I have sent CSRF token (payload here): csrfmiddlewaretoken 0semFHKn6pOtaQ6FnLhYebyORox30xJvx8IeuW6blGKkjdfhzy1Y724xteBSXEIL q map+generat section Forum
Ad 2.: I have checked on other browser (opera) that the bug can be reproduced there.
So try reproducing:
Going around it I have one idea, why it is that: The session on server side for anonymous user is no-longer true (after login), so static data (CSRF token) is not valid any more. But I am not sure here, I have never spot such a problem.
Imported from Launchpad using lp2gh.