-
Notifications
You must be signed in to change notification settings - Fork 94
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
Text app and Android Direct Editing permit creating data unencrypted within encrypted folders #5168
Comments
@cyphunk Can you please use the issue template: https://github.com/nextcloud/server/blob/master/.github/ISSUE_TEMPLATE/Bug_report.md
This step should not be possible. You should not be able to open encrypted folders in the web ui. |
will correct to this format. BTW, it wasn't accessible in webui. that still remained true. enc.md file in encrypted folder was only accessible in android app. still, data on server stored unencrypted |
What version of the Android app are you using? |
3.10.1 |
There seem to be actually two issues here:
|
hmm. can I submit this as a bug bounty? :) |
@juliushaertl Any update here? :) |
@georgehrke Do you have any idea how i could check if a file or the parent folder is encrypted with e2e but not with SSE (since there the encrypted flag in the filecache would also be set) |
I didn't check in detail yet, but I would expect this could also cause issues when SSE and E2E are used in parallel: |
|
You are completely addressing this in the wrong way @joshtrichards. I really have to comment this. Not because I believe it will help now. But you really need better architects and management at Nextcloud. This is yet another security flaw in e2ee offering of Nextcloud. A folder designated for e2ee files should never allow to store anything but e2ee encrypted files thus should only allow writes and reads via an service for this. It should by design not be possible to write or read from this folder in a different way. |
I have the text app enabled. I create a new text file ("enc.md") within an encrypted folder. When I edit this file the data shows up in plain text on the server. I'm reporting this issue here rather than in the "text" app because the e2e encryption system should not permit storing of unencrypted data in encrypted folders, or should not allow apps to store data in them, or should at least note which files are actually encrypted
Steps to reproduce
Expected behaviour
Any data stored in encrypted folder should appear encrypted on the server hard disk
Actual behaviour
cat data/_user_/files/Encrypted/enc.md
shows plaintext dataServer configuration
Operating system: ubuntu 18.04
Web server: nginx 1.14.0-0ubuntu1.7
Database: whatever is in the docker hub nextcloud:18.0.2-fpm-alpine
PHP version: whatever is in the docker hub nextcloud:18.0.2-fpm-alpine
Nextcloud version: docker hub nextcloud:18.0.2-fpm-alpine
Updated from an older Nextcloud/ownCloud or fresh install: fresh
Where did you install Nextcloud from: docker hub nextcloud:18.0.2-fpm-alpine
Android app version: 3.10.1
The text was updated successfully, but these errors were encountered: