Use of insecure crypto for storing passwords

Bug #1158373 reported by Marc Deslauriers
260
This bug affects 1 person
Affects Status Importance Assigned to Milestone
remote-login-service (Ubuntu)
Confirmed
Undecided
David Barth

Bug Description

remote-login-service caches the information returned from the server (including usernames and passwords) by encrypting it and storing it in a file.

The crypto used for the file is totally wrong and insecure. It is trivial to perform an attack on this file and recover the contents and the user password.

In crypt.c:

- A password should not be used as an AES encryption key. The user password, along with a salt, should be put through a key-derivation function such as PBKDF2 before being used as the AES key.
- The key should not be used as the IV. The IV needs to be random.
- Cipher should at least be GCRY_CIPHER_AES256

CVE References

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

David, could you take a look at this, and possibly find someone to fix it?
Thanks!

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

This is CVE-2013-1053

Changed in remote-login-service (Ubuntu):
assignee: nobody → David Barth (dbarth)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Is there any progress on this?

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Ping re progress?

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Has there been any progress on resolving this issue for our stable releases?

Revision history for this message
David Barth (dbarth) wrote :

yes, a merge proposal is in the works

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Has there been any progress on this?

information type: Private Security → Public Security
Changed in remote-login-service (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.