-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Don't perform CSRF check on OCS routes with Bearer auth #7873
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
Conversation
|
clean nc14 (with the fix)+moodle34+plugin for moodle from owncloud : nextcloud.log: apache: |
|
nevermind, wrong endpoint for the webdav |
|
@pierreozoux maybe you can test this as well? |
Codecov Report
@@ Coverage Diff @@
## master #7873 +/- ##
===========================================
- Coverage 51.7% 51.7% -0.01%
- Complexity 25426 25427 +1
===========================================
Files 1598 1598
Lines 95236 95239 +3
Branches 1376 1376
===========================================
+ Hits 49243 49244 +1
- Misses 45993 45995 +2
|
|
I confirm it works! Thanks for the proper fix :) |
|
@pierreozoux thanks for testing! And also thanks for your first PR, getting to know the code indeed takes time. Looking forward to the next one 😄 ! |
|
Hi @rullzer, I tested your fix and it seems to work ok on Nextcloud 12.0.5 (+applied patch) in combination with the Moodle plugin. Thanks a lot for fixing this issue!! 👍 Some general remarks:
|
Fixes #5694 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
@Dagefoerde thanks for testing!
Because basically the OCS endpoints and the webdav endpoints are the 'official' endpoints we use. If you need more we can look into it. But I'd like to keep the rest of the system as locked down as possible ;)
Mmmm maybe you set Accept headers?
My bad. Fixed! |
Not yet, but thank you. This was just intended as a general remark because I was wondering what would be the "right" extent of this patch.
Fair enough. Moodle's API sets an accept header (see below). Does Nextcloud use the value of this header? Thanks for the hint, I should be able to change that. |
|
Yes we use the accept header :) I shall fire of an issue to the doc repo to clarify this |
|
Fine by me 👍 |
|
@rullzer Backport to stable13? |
Fixes #5694
Todo:
@daita please verify
@Dagefoerde could you also check this out? THNX.