Bug 242256 - JJ: Make Magnatue service use KWallet for password storage [was: Amarok stores passwords in plaintext in amarokrc]
Summary: JJ: Make Magnatue service use KWallet for password storage [was: Amarok store...
Status: CONFIRMED
Alias: None
Product: amarok
Classification: Applications
Component: Services/Magnatune (show other bugs)
Version: 2.8.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: later
Assignee: Amarok Developers
URL: http://git.reviewboard.kde.org/r/104480/
Keywords:
Depends on:
Blocks: 277121 300320
  Show dependency treegraph
 
Reported: 2010-06-20 14:08 UTC by ned
Modified: 2015-04-20 15:34 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ned 2010-06-20 14:08:34 UTC
Version:           2.3.1 (using KDE 4.4.4) 
OS:                Linux

/home/naught101/.kde/share/config/amarokrc contains passwords for mysql, and all web services in plaintext. amarokrc is word readable by default, so this is a potential security threat, especially as the mysql password on many systems is the same as the first user account password, which usually has sudo access (eg. ubuntu).

Reproducible: Didn't try
Comment 1 Samuel Brack 2010-12-08 16:33:02 UTC
This is still an issue in 2.4-GIT.
Comment 2 Sven Krohlas 2011-07-04 14:55:04 UTC
Interesting, for me access rights are set correctly:

ls -al ~/.kde4/share/config/amarokrc
-rw------- 1 sven users 15802  4. Jul 14:49 /home/sven/.kde4/share/config/amarokrc

Also a survey in #amarok on IRC showed exactly 0 people with different file access rights.

So, is that one still an issue at all? Maybe it got fixed by KConfig at some point?
Comment 3 ned 2011-07-05 04:18:25 UTC
Hrm... appears to be resolved, yes. only readable by the owner, and it also contains no passwords, although there is still this section:

[Service_Mp3tunes]
email=
harmonyEmail=
harmonyEnabled=false
identifier=1C75...0420
partnerToken=48...20
password=
pin=

(I don't use Mp3tunes). I still think the file shouldn't contain plaintext passwords, just in case the user account is compromised.
Comment 4 Kevin Funk 2011-07-05 09:13:35 UTC
Converting this to a junior job. This will require making the magnatune service using KWallet. This is akin to the Last.fm service implementation.
Comment 5 Andrzej J. R. Hunt 2012-04-03 19:05:03 UTC
I've more or less completed this. Just checking over my code and will submit it to the reviewboard when done.
Comment 6 Myriam Schweingruber 2012-05-20 03:04:09 UTC
Andrzej: any news on this?
Comment 7 Andrzej J. R. Hunt 2012-05-20 20:25:25 UTC
Instead of just fixing this it was decided (on the mailing lists) that I'd write a common password storage for Amarok which all plugins will then use. Due to exams I currently don't have time to complete it (I'm also working on a GSOC project with Libreoffice which takes up a fair bit of time) -- I'm going to hopefully fix this in the middle of June (i.e. once exams are over).

(Ps. this common password storage would also fix 277121. It uses KWallet if available, or gnome-keyring and will be expanded to other keyrings.)
Comment 8 Myriam Schweingruber 2012-06-23 15:54:39 UTC
(In reply to comment #7)
> Instead of just fixing this it was decided (on the mailing lists) that I'd
> write a common password storage for Amarok which all plugins will then use.
> Due to exams I currently don't have time to complete it (I'm also working on
> a GSOC project with Libreoffice which takes up a fair bit of time) -- I'm
> going to hopefully fix this in the middle of June (i.e. once exams are over).
> 
> (Ps. this common password storage would also fix 277121. It uses KWallet if
> available, or gnome-keyring and will be expanded to other keyrings.)

Any news on this?
Comment 9 Myriam Schweingruber 2012-09-14 09:59:10 UTC
(In reply to comment #7)
> Instead of just fixing this it was decided (on the mailing lists) that I'd
> write a common password storage for Amarok which all plugins will then use.
> Due to exams I currently don't have time to complete it (I'm also working on
> a GSOC project with Libreoffice which takes up a fair bit of time) -- I'm
> going to hopefully fix this in the middle of June (i.e. once exams are over).
> 
> (Ps. this common password storage would also fix 277121. It uses KWallet if
> available, or gnome-keyring and will be expanded to other keyrings.)

Any news on this, Andrzej?
Comment 10 Myriam Schweingruber 2012-12-04 09:52:58 UTC
Reopening. Since there were no news from the previous developer this Junior Job is up for a taker again.
Comment 11 vedant agarwala 2013-04-19 13:52:11 UTC
I am picking it up :)
Comment 12 vedant agarwala 2013-04-20 14:15:38 UTC
Patch uploaded. Please review :)
https://git.reviewboard.kde.org/r/110101/
Comment 13 Matěj Laitl 2013-05-30 14:43:13 UTC
New review: https://git.reviewboard.kde.org/r/110426/ (also from Vedant)
Comment 14 Mikhail Ivchenko 2013-12-04 12:11:47 UTC
Still not fixed in amarok v2.8.0
Comment 15 Adriano R. Lopes 2015-04-18 21:06:55 UTC
I will work on this bug.
Comment 16 Myriam Schweingruber 2015-04-20 08:12:18 UTC
(In reply to Adriano R. Lopes from comment #15)
> I will work on this bug.

Nice, please get in touch with us on the amarok-devel@kde.org mailing list