After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766789 - [lastfm] coverart insecure
[lastfm] coverart insecure
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: plugins
git master
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2016-05-23 12:26 UTC by Marinus Schraal
Modified: 2017-05-02 09:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
lastfm-cover: Use HTTPS rather than insecure HTTP (1.32 KB, patch)
2017-05-02 09:30 UTC, Felipe Borges
committed Details | Review

Description Marinus Schraal 2016-05-23 12:26:54 UTC
Following the discussion in bug #747953: the lastfm albumart API returns plain http urls for the albumart retrieval, this is the part that makes the plugin leak. However, while testing it turns out the same urls by https also work, only the certificate it uses is not valid.

So the holder of the API key should probably try to contact the lastfm folks and try to convince them to go https by default and/or fix the certificate problem. Using the https urls while they're not returned by the API is probably unwanted behaviour.
Comment 1 Bastien Nocera 2016-05-23 13:33:01 UTC
https://wiki.gnome.org/Initiatives/OnlineServicesAPIKeys
-> Felipe
Comment 2 Felipe Borges 2016-05-23 13:45:55 UTC
Thanks, I'm on it.
Comment 3 Felipe Borges 2017-05-02 09:20:38 UTC
To keep everyone posted on the issue, I opened a topic in their forum at the time at https://getsatisfaction.com/lastfm/topics/use-https-by-default which has been tagged as "IMPLEMENTED".

If you test the API endpoint with our API keys, it returns https urls for the images https://ws.audioscrobbler.com/2.0/?method=album.getinfo&api_key={API_KEY}&artist=Cher&album=Believe
Comment 4 Felipe Borges 2017-05-02 09:30:45 UTC
Created attachment 350852 [details] [review]
lastfm-cover: Use HTTPS rather than insecure HTTP

To avoid leaking (potentially uniquely identifiable) user data over
plain text (be it search phrases, hashes of contact emails, etc etc),
use HTTPS whenever possible.
Comment 5 Bastien Nocera 2017-05-02 09:32:51 UTC
Review of attachment 350852 [details] [review]:

Win!

Not sure that "hashes of contact emails" matches what this plugin is used for though, does it?
Comment 6 Felipe Borges 2017-05-02 09:54:33 UTC
I updated the commit message. Thanks!

Attachment 350852 [details] pushed as 88d674a - lastfm-cover: Use HTTPS rather than insecure HTTP