Skip to content
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

Encryption Modul: encrypt Thumbnails on server as well #11790

Closed
JimLoose opened this issue Oct 27, 2014 · 49 comments
Closed

Encryption Modul: encrypt Thumbnails on server as well #11790

JimLoose opened this issue Oct 27, 2014 · 49 comments

Comments

@JimLoose
Copy link

JimLoose commented Oct 27, 2014

  • When i have encryption on, files and especially images should be encrypted here as well.
  • If encryption is changed, we could simply delete the cache there.
@PVince81
Copy link
Contributor

Please raise separate bug reports for these, they are different things.

For the image deletions there is already another report: #10484

@JimLoose JimLoose changed the title Cleanup / Delete of thumbnails Encryption Modul: encrypt Thumbnails on server as well Oct 28, 2014
@JimLoose
Copy link
Author

thx changed.

@georgehrke
Copy link
Contributor

cc @schiesbn

@oparoz
Copy link
Contributor

oparoz commented Jan 22, 2015

Not sure why that folder isn't encrypted? It's being access through View.

@DeepDiver1975 DeepDiver1975 added this to the 8.1-next milestone Jan 22, 2015
@georgehrke
Copy link
Contributor

ping @schiesbn

@PVince81
Copy link
Contributor

Encryption were never encrypted before.

I believe most folders are excluded from encryption, except files, files_versions and files_trashbin

@georgehrke
Copy link
Contributor

@schiesbn How hard is it to enable encryption for previews.
Is it just a matter of adding 'thumbnail' to an array of whitelisted folders?

@PVince81
Copy link
Contributor

PVince81 commented Feb 4, 2015

Because it limits itself to files and files_versions, see https://github.com/owncloud/core/blob/master/apps/files_encryption/lib/proxy.php#L52

@PVince81
Copy link
Contributor

PVince81 commented Feb 4, 2015

Whitelisting is likely to not work because there is no location for the encryption key of the "thumbnails" folder.
Ideally the folder structure of the encryption should be changed to be "$user/files_encryption/$folderId/..." where "$folderId" can be "files", "files_versions" or anything else.

@georgehrke
Copy link
Contributor

cc @karlitschek @DeepDiver1975

What's your opinion on encrypting the previews?

@georgehrke georgehrke self-assigned this Feb 11, 2015
@PVince81
Copy link
Contributor

I think it would be fine.
My worry is mostly architectural...

@karlitschek
Copy link
Contributor

Sounds like something that is possible but would not be very high on the priority list. I suggest that we first fix all the other sev1 and sev2 bug first ;-)

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.2-next, 8.1-current Mar 3, 2015
@DeepDiver1975
Copy link
Member

Let's reevaluate this in 8.2 - with 8.1 we will get a different code organization for encryption - which might help to get this implemented easier

@oparoz
Copy link
Contributor

oparoz commented Jun 26, 2015

So, what's the word on encrypting thumbnails with the new encryption module? This is a pretty big privacy issue.

@LukasReschke
Copy link
Member

This is a pretty big privacy issue.

This is not part of the threat model and also documented: https://doc.owncloud.org/server/8.1/admin_manual/configuration_files/encryption_configuration.html?highlight=encryption#files-not-encrypted

@oparoz
Copy link
Contributor

oparoz commented Jun 26, 2015

Just because it's documented doesn't mean that it's OK from my pov. If a users enables encryption, then those files should only be made available "in clear" in the clients.

@schiessle
Copy link
Contributor

With ownCloud 8.0 and smaller this wasn't possible because all keys where relative to data/user/files, so we couldn't store encryption keys for files outside of the "files"-directory.

With ownCloud 8.1 this will change. Now the keys are relative to data/user, so we can encrypt everything. Until now we decided to decrypt the same set of files and not to change the behavior to compared with ownCloud8. But we could easily encrypt the previews, we would just need to return true for "thumbnails" here: https://github.com/owncloud/core/blob/master/apps/encryption/lib/crypto/encryption.php#L338

@oparoz
Copy link
Contributor

oparoz commented Jun 26, 2015

@schiesbn That's really great news. What was the motivation behind the decision not to encrypt thumbnails in 8.1?

@PVince81 PVince81 removed this from the 8.2-current milestone Sep 29, 2015
@ghost
Copy link

ghost commented Sep 30, 2015

@PVince81 agree, thanks

@ghost ghost modified the milestones: 9.1-next, 9.0-current Feb 17, 2016
@PVince81 PVince81 modified the milestones: 9.1-current, 9.2-next Jun 14, 2016
@loomy
Copy link

loomy commented Sep 21, 2016

hi guys. I was just questioning myself if thumbnails are encrypted too and googled to this ticket.
imho encrypting my pictures is useless as long as the they are still accessible through the thumbnail.
you should at least give a hint on enabling encryption and show how to disable them. or even give an option.

is
'enable_previews' => false,
enough?

...if you gave that hint and I just didnt read it, blame me

@AykutCevik
Copy link

Thumbnails are still not encrypted in the latest stable release (9.1.3) of owncloud. This makes encryption for images obsolete since any server host can still access private images of its users without doing any modification on the code. Is any progress made on this issue? Should be handled with a higher severity IMO.

@ghost
Copy link

ghost commented Jan 15, 2017

you should at least give a hint on enabling encryption

Some notes about that is available here:

https://doc.owncloud.org/server/latest/admin_manual/configuration_files/encryption_configuration.html#files-not-encrypted

This makes encryption for images obsolete since any server host can still access private images of its users without doing any modification on the code.

The use case of the encryption app is not to protect your local files as widely known and explained here:

Encryption keys are stored only on the ownCloud server, eliminating exposure of your data to third-party storage providers. The encryption app does not protect your data if your ownCloud server is compromised, and it does not prevent ownCloud administrators from reading user’s files.

https://doc.owncloud.org/server/latest/admin_manual/configuration_files/encryption_configuration.html

If you want to protect your data from your server host (no matter if he needs to modify code or not) is only possible with:

his would require client-side encryption, which this app does not provide.

I think thats the main reason why this is not handled with a high severity:

The encryption app is not there for protecting your files on your local disc.

If its high severity for you they probably are also accepting Pull Requests with an implementation of this.

@PVince81
Copy link
Contributor

@pmaier1

@loomy
Copy link

loomy commented Apr 6, 2017

thx for the info @kdslkdsaldsal.

that means the privkey is not password protected with my login password ?

@ghost
Copy link

ghost commented Apr 6, 2017

@loomy It is protected with your login password. But everyone with access to your server (e.g. an administrator or an malicious user) can modify the ownCloud source code to:

  1. Write out your plaintext password during the time you're logging in
  2. Write out the plaintext files during the time you're accessing these

There is no way for ownCloud to protect you from this and there is no way that the Encryption app is protecting local files (e.g. thumbnails as requested here) from users having access to your local server.

If you want to have this security you need to use client-side encryption like explained above.

@AykutCevik
Copy link

@kdslkdsaldsal since I'm hosting my own owncloud instance on my root server in a datacenter I would not write down any password to the harddisk. But if the hoster itself extracts my HDD he can view all unencrypted files easily - where he would find all the thumbnails of my owncloud instance.

This is definitely a security issue.

@ghost
Copy link

ghost commented Apr 6, 2017

@AykutCevik If you don't trust your hoster then you need to use client-side encryption. There are always possibilities that some one with physical access to your running server is able to get access to everything on your server.

If some one is extracting your HDD you're having more serious issues than your thumbnails. 😄

Edit

Disclaimer: I'm just want to point out here that the encryption app (or server side encryption in general) is giving you a false sense of security if you're trying to protect your data located on the same server where your private keys are located.

@stale
Copy link

stale bot commented Sep 20, 2021

This issue has been automatically closed.

@stale stale bot closed this as completed Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests