-
Notifications
You must be signed in to change notification settings - Fork 2.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
Prevent WebDAV delete of user's files folder #16756
Comments
Note, this can also be achieved using a backslash folder: The folder gets sanitized to "/" which points to the internal "files" folder... |
This also deletes the root: Normally it would not accept to MOVE a folder to itself, but semantically the target folder is considered a different folder, so it tries to overwrite it. And overwrite first deletes the destination. So this has the same symptoms. |
@SergioBertolinSG @jnfrmarks something to add to test plans. |
Tried
It returned:
And session gets broken. |
Yes. And after the next login, they get an empty account. |
Similar issue with public WebDAV: #16757 |
PR here #16767 |
Steps:
Run
curl -D - -X DELETE "http://root:admin@localhost/owncloud/remote.php/webdav/"
Expected result
403 forbidden
Actual result
Internal folder "$user/files" is deleted.
Trashbin contains folder "files".
Getting "contrain violation errors".
We should probably make "isDeletable()" return false on the root folder and also "files".
CC @icewind1991 @schiesbn @nickvergessen
The text was updated successfully, but these errors were encountered: