nextcloud-server/apps/dav/appinfo/v2
Louis Chemineau 009d0c550c
fix: Move CSRF check from base to PublicAuth for public.php
This currently prevent directly accessing a ressource when clicking on a link on a third party site. Example, clicking on `https://example.com/public.php/dav/files/pqLWcA269zfzXez/?accept=zip` in a GitHub comment.

Skipping the check is an issue with password protected shares, as it allows third party sites to request the ressource when the user already entered the password, aka CSRF.  So after removing the check from `base.php`, we need to add the it again in the `PublicAuth` plugin.

We also add a redirect to be helpful to the user.

**Warning**: this adds the limitation that clicking on a direct download link for password protected shares will redirect you to the password form, and then to the main share view.

Fix #52482

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-05-21 16:01:36 +07:00
..
direct.php chore: Apply new rector configuration to apps folder 2025-02-13 11:46:42 +07:00
publicremote.php fix: Move CSRF check from base to PublicAuth for public.php 2025-05-21 16:01:36 +07:00
remote.php chore: Apply new rector configuration to apps folder 2025-02-13 11:46:42 +07:00