core icon indicating copy to clipboard operation
core copied to clipboard

Credentials bug in ownCloud 4.5.0

Open MTRichards opened this issue 14 years ago • 8 comments

We are working on a bug related with special characters used in the password field. We need some help because we don't know exactly how it works on the server side.

We use wireshark to analyze what the apps send to the server.

Here is an example:

Username: pepe Password: ñ

What is send to the server is the following:

Authorization: Basic cGVwZTrx Credentials: pepe:\361

The authorization is on Base64 (http://en.wikipedia.org/wiki/Basic_access_authentication), separated using ":"

Converting cGVwZTrx to plain text (http://www.motobit.com/util/base64-decoder-encoder.asp) you get pepe:ñ.

We think that the problem coud be with the translation to plain text and related with the encoding used in the server side.

Could you please put us in touch with someone that could help us with this issue?

http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-2098

MTRichards avatar Oct 23 '12 20:10 MTRichards

Browsers uses different encodings of non-ASCII characters before base64ing it. (That's the reason why the login will work with Chrome but not in Firefox...)

Stackoverflow has a nice list (little bit outdated - but nice to understand the problem). - An idea might be to check for the different encodings in the login (if this is possible) - or we just allow ASCII passwords.

LukasReschke avatar Oct 23 '12 20:10 LukasReschke

Well, ok. The thing is, this is for the WebDAV iOS and Android app communications with the server. We don't know what special characters are allowed/not allowed, how they are handled and encoded...So not sure how to handle the problem or find the solution here.

MTRichards avatar Oct 23 '12 21:10 MTRichards

Please check if #186 solves the problem.

LukasReschke avatar Oct 31 '12 23:10 LukasReschke

It does not solve it completely. Only if 1 special character is in the username. 2 don't work.

MTRichards avatar Nov 05 '12 15:11 MTRichards

If you use a special character alone as password (ig ?) it works, but if you use that character as a part of the password it doesn't (lin?ux or linux?)

rjimenezsg avatar Nov 05 '12 15:11 rjimenezsg

Hello - any update here, we are seeing errors from the communnity again with this bug.

MTRichards avatar Nov 27 '12 17:11 MTRichards

This remains an issue for special characters. It is still possible to set a password in the user panel that then cannot be used to log in using the web client, nor any of the mobile clients, some of the characters that i have found with this problem are:

  • @ (sometimes)
  • `
  • €
  • ß
  • ç
  • /

Repeat: Using 4.5.3, log in to ownCloud Create a user with a password like 'owncloud log out as the admin, try to log in as this user. it won't work

Firefox, Windows7, 4.5.3 on openSUSE

MTRichards avatar Nov 29 '12 18:11 MTRichards

this seems resolved in ownCloud 4.5 daily build Jan 17. the password ?!@#$%' worked for me. So did lin?ux and lin@?ux, and many others.

MTRichards avatar Jan 17 '13 14:01 MTRichards