mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #536] dufs lists by webdav contents to which the user does not have access #312
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ogarcia on GitHub (Feb 1, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/536
Problem
If you simply launch dufs with this
@/publicACL, users can list (via WebDav) the contents of/. They cannot open the files nor can they access other subdirectories of/.Configuration
Log
Environment Information
@sigoden commented on GitHub (Feb 1, 2025):
similar to #263
Webdav must be designed like this.
This is because some webdav clients do not carry the Authorization header when listing files.
@ogarcia commented on GitHub (Feb 2, 2025):
You have to forgive me but it's to get it right. You say that the webdav client does not send the authorization header, but in this case it does not have to send it since it is making a completely anonymous request.
As far as I know, the client makes a PROPFIND request indicating what information it wants to receive and with what depth (0, 1 or infinite) and with the response it gets is what builds what it shows to the user. Basically this curl:
As side note, in terms of properties, it can change and go for a fixed shot, asking mainly for these:
From there the server returns the list which, as I see it, should not include what it does not have access to, but it does:
The truth is that I don't understand where the client is going wrong here or what is missing.
@sigoden commented on GitHub (Feb 2, 2025):
For some webdav clients, even if you enter username/password, it will not automatically carry authorization information by default, which means you can only see the public directory but not other directories. Even if you are an admin account.
@ogarcia commented on GitHub (Feb 2, 2025):
Ah. Ok. It's a workaround for certain webdav clients that should make the authenticated request and don't do it. Understood.
Thanks!! ☺️