client icon indicating copy to clipboard operation
client copied to clipboard

Configuration file with password world-readable

Open cweiske opened this issue 12 years ago • 6 comments

Owncloud client 1.5.0 on Ubuntu 13.04 saves the password into /home/cweiske/.local/share/data/ownCloud/owncloud.cfg.

This file is group and world-readable, so everyone with access to the computer may read the password.

The configuration should be user-readable only by default.

cweiske avatar Dec 19 '13 09:12 cweiske

Hi!

I'm using Kubuntu 13.10 and the 1.5.0 version of the owncloud client and that file you're talking about has no password in it and it's readable only by the user. Th same on Kubuntu 13.04. But, in Fedora 18 that file is world readable.

Regards,

2013/12/19 Christian Weiske [email protected]

Owncloud client 1.5.0 on Ubuntu 13.04 saves the password into /home/cweiske/.local/share/data/ownCloud/owncloud.cfg.

This file is group and world-readable, so everyone with access to the computer may read the password.

The configuration should be user-readable only by default.

— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/mirall/issues/1303 .

Linkedin profile (http://es.linkedin.com/in/lafdez) G+ profile (https://plus.google.com/u/0/115320207805121303027/about) Twitter (@lafdez @lafdez) Identi.ca (@lafdez)

lafdez avatar Dec 19 '13 09:12 lafdez

For me it contains:

[ownCloud]
url=https://hostname
http_user=username
authType=http
user=username
username%3Ahttps%3A\hostname\type=1
username%3Ahttps%3A\hostname\data=@ByteArray(password)

cweiske avatar Dec 19 '13 09:12 cweiske

I don't have those last two lines you have. This is what I have in that section:

[ownCloud] url=https://my_host user=my_user nostoredpassword=false authType=http http_user=my_user

2013/12/19 Christian Weiske [email protected]

For me it contains:

[ownCloud] url=https://hostname http_user=username authType=http user=username username%3Ahttps%3A\hostname\type=1 username%3Ahttps%3A\hostname\data=@ByteArray(password)

— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/mirall/issues/1303#issuecomment-30915980 .

Linkedin profile (http://es.linkedin.com/in/lafdez) G+ profile (https://plus.google.com/u/0/115320207805121303027/about) Twitter (@lafdez @lafdez) Identi.ca (@lafdez)

lafdez avatar Dec 19 '13 09:12 lafdez

@cweiske I think the credentials disappear later. I saw them also on the first run of the client and was shocked but then it disappeared. Please check again.

SylvainAGO avatar Jan 22 '14 05:01 SylvainAGO

Even on the first run it should not be world-readable.

cweiske avatar Jan 22 '14 05:01 cweiske

Fixed.

danimo avatar Jun 05 '14 17:06 danimo