-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
CSRF check failed after creation of password protected share link #13893
Comments
I can't reproduce with Nextcloud 16. |
This issue has been automatically marked as stale because it has not had recent activity and it seems to be missing some essential informations. It will be closed if no further activity occurs. Thank you for your contributions. |
@bpcurse do you still see the issue? Apparently there are a few instances where this keeps happening, but we could not identify any pattern yet. |
@ChristophWurst Thanks for following up on this. I cannot reproduce this issue anymore on Seems that either the Nextcloud updates or the Firefox update solved this. Sorry for not being able to pinpoint. |
No worries. I was just hoping we could find the reason for the bug as some instances are still affected. But great to hear it's working for you :) |
@ChristophWurst Found it, seems to happen on slightly older Firefox browsers regardless of the nextcloud version! After experimenting with older Firefox versions (linux x86_64, german) from Mozilla archives, it happens again (using a shared text file created through files app). Collabora online is installed. Test results: Also the display in the address bar changes after logout:
|
Thank you so much for this information! Sounds like we can finally investigate why this is happening for some users. They just have a different browser than us, hence it's not reproducible 🤦♂️ |
I haven't tested yet but it might fulfill our suspicious that some browser do not reload the page properly and an outdated CSRF token remains somehow. |
You are welcome, glad I could help :) |
Unfortunately I can not reproduce this. Neither the CSRF error nor the logout URL. It's always the latter URL logout. May I ask how you've run these old FF versions? |
I rechecked and it seems that I have to apologize for writing "regardless of the nextcloud version". Anyway here is my course of action, step by step: This was done on Manjaro Linux against a shared hosting 15.0.5 nextcloud server at all-inkl.
@ChristophWurst I could send you an access link and password with failing csrf check via email, if you want. |
Tried with FF64 from the link above (clean profile) and Nextcloud 15.0.5 (from git) and it just worked: https://im4.ezgif.com/tmp/ezgif-4-a04669664e82.gif What am I doing wrong? 🤔
Yes, please send me one to christoph at nextcloud dot com. |
Will send it to you within the hour. Hopefully it will shed some light onto this. |
The ezgif link from your previous post leads to a 404. |
Some more debugging progress can be found at #17065 |
Moving to 17065 then |
Steps to reproduce
Expected behaviour
The data should be accessible after entering the correct password
Actual behaviour
"CSRF check failed" error message is displayed (not an issue if password protection isn't set)
After closing the browser and reopening it, the share can be accessed as expected
Server configuration
This happens on two differently hosted nextcloud instances:
14.0.6 on shared webhosting, apache, mysql, php 7.2
15.0.2 manjaro i3 linux, nginx, mariadb, php 7.2
Client configuration
Manjaro Linux, Firefox 64.0.2
The text was updated successfully, but these errors were encountered: