core icon indicating copy to clipboard operation
core copied to clipboard

Users password cleartext in source code

Open iliaselmatani opened this issue 12 years ago • 8 comments

Hi there,

When a user browse to the personal (settings) page*, Owncloud will send the users password (in cleartext !) back to the browser. This is an security vulnerability, one of the reasons: the browser may cache the page. This shows a poor understanding of security.

I would like to see it like: One field for the users current password and two for the new password.

  • index.php/settings/personal

-Ilias

iliaselmatani avatar Dec 22 '13 17:12 iliaselmatani

This is necessary for the "show password" feature. I don't think this is a problem if using SSL. More private data is send to the browser anyways like personal documents, session cookie, ... I'm also not sure how your proposal to have three different fields changes anything here?

karlitschek avatar Dec 23 '13 10:12 karlitschek

Not sure if "show password" makes sense for an existing password. It might only make sense when typing in a new password (especially on mobile devices), just to verify that the typed in new password is the correct one, especially that we don't have a "retype password" field.

Thoughts ? CC @owncloud/designers

PVince81 avatar Jan 08 '14 10:01 PVince81

The »show password« toggle is not present for the existing password, and for a good reason. @iliaselmatani makes a good point – I don’t see why the existing password is prefilled there – that defeats the security purpose of that field altogether. The password should never be sent to the client in plain text.

jancborchardt avatar Jan 08 '14 11:01 jancborchardt

Can't reproduce in OC 5.0.14 or OC 6.0.1.

The "settings" page sent to the browser doesn't contain any password.

@iliaselmatani were you probably using a much older version ?

PVince81 avatar Jan 24 '14 16:01 PVince81

See https://github.com/owncloud/core/pull/6939 for the fix. The issue wasn’t that ownCloud sends the password to the client, but that the browser autofills it and it can be revealed using the »show password« toggle.

jancborchardt avatar Jan 24 '14 18:01 jancborchardt

This issue has been fixed in Owncloud 6.0.1. Therefore I will close this. See also: https://github.com/owncloud/core/pull/6939

iliaselmatani avatar Jan 25 '14 12:01 iliaselmatani

@iliaselmatani the fix would only be in ownCloud 7. Should we backport @karlitschek?

jancborchardt avatar Jan 25 '14 15:01 jancborchardt

@jancborchardt yes please because it is a security issue

karlitschek avatar Jan 25 '14 17:01 karlitschek