-
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
Create a user "files_encryption" #37267
Comments
@micbar fyi ... |
I had raised an issue about various "special" strings like this that should not be allowed as user names. |
Thanks @phil-davis I hadn't seen this issue before, well that's too bad, it seems old :/ |
PR #37268 has been merged. The special usernames will not be able to be "accidentally" created in future. Should be released in 10.5.0 |
Thanks a lot @phil-davis :) |
Hello everyone,
first don't do this on an ownCloud production !
I've noticed that the apps files_external and files_encryption create a directory in the datadirectory. It's then possible to destroy them by creating a user with the same name.
Steps to reproduce
Expected behaviour
I'm thinking you shouldn't be able to create that user, there should be a blacklist of usernames. Or maybe not put any useful thing in the datadirectory.
Actual behaviour
The content of datadirectory/files_encryption will be destroyed, your encryption keys too. The same happens for files_external if you create a user with that name. It seems the keys get re-generated but are not the same as previously (I checked the md5sum) and previously uploaded files can be browsed. But newly uploaded files are failing the preview. I'm a bit puzzled since everything seems to be working even if the keys have been destroyed and then changed.
Server configuration
Operating system:
Web server: NGinx 1.16.1
Database: MySQL 5.7
PHP version: 7.3.16
ownCloud version: 10.3.2
Updated from an older ownCloud or fresh install: fresh install
Where did you install ownCloud from: tarball
Signing status (ownCloud 9.0 and above): all good
The content of config/config.php:
List of activated apps:
Are you using external storage, if yes which one: no
Are you using encryption: yes, master encryption
Are you using an external user-backend, if yes which one: no
I'm aware it's a bit pushed, you have to create a user with a specific name, but it might happen. I think the best would be to keep datadirectory only for the users, and move the app folders somewhere else. And/or to have a blacklist of usernames.
If you need more informations let me know.
Thanks for your help.
The text was updated successfully, but these errors were encountered: