Bug 28581 - Discover: Missing URI scheme validation : CVE-2021-28117
Summary: Discover: Missing URI scheme validation : CVE-2021-28117
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA7TOO MGA7-64-OK MGA8-64-OK
Keywords: advisory, validated_update
Depends on: 27126
Blocks:
  Show dependency treegraph
 
Reported: 2021-03-10 22:13 CET by Nicolas Lécureuil
Modified: 2021-03-18 11:54 CET (History)
3 users (show)

See Also:
Source RPM: discover-5.20.4-3.1.mga8
CVE: CVE-2021-28117
Status comment:


Attachments

Description Nicolas Lécureuil 2021-03-10 22:13:32 CET
Advsory:

Discover fetches the description and related texts of some applications/plugins from store.kde.org. That text is displayed to the user, after turning into a clickable link any part of the text that looks like a link. This is done for any kind of link, be it smb:// nfs:// etc. when in fact it only makes sense for http/https links.

src:
    - discover-5.20.4-3.1.mga8
Comment 1 David Walser 2021-03-10 22:33:51 CET
5.15.x (Mageia 7) is also affected.

Whiteboard: (none) => MGA7TOO
Assignee: qa-bugs => mageia

Comment 2 Nicolas Lécureuil 2021-03-10 22:49:44 CET
fixed in mga7 too now:

src:
    - discover-5.15.4-2.1.mga7

Assignee: mageia => qa-bugs

Comment 3 Thomas Backlund 2021-03-10 23:04:24 CET
remember that discover needs to be rebuilt for flatpak, so if you intend to push new flatpak there, then discover will need a rebuild again then...
Comment 4 Aurelien Oudelet 2021-03-12 00:02:00 CET
(In reply to Thomas Backlund from comment #3)
> remember that discover needs to be rebuilt for flatpak, so if you intend to
> push new flatpak there, then discover will need a rebuild again then...

Note that:

discover-5.20.4-3.1.mga8.src.rpm as a timestamp of 2021-Mar-10 22:21:13
and flatpak-1.10.2-1.mga8.src.rpm  2021-Mar-10 19:04:39

This needs a proper advisory.

CC: (none) => ouaurelien

Comment 5 David Walser 2021-03-12 20:07:21 CET
Packages list:
discover-5.15.4-2.2.mga7
discover-5.20.4-3.1.mga8

Depends on: (none) => 27126

Comment 6 David Walser 2021-03-12 20:10:05 CET
Advisory:
========================

Updated discover package fixes security vulnerability:

Discover fetches the description and related texts of some applications/plugins
from store.kde.org. That text is displayed to the user, after turning into a
clickable link any part of the text that looks like a link. This is done for
any kind of link, be it smb:// nfs:// etc. when in fact it only makes sense for
http/https links. Opening links that the user has clicked on is not very
problematic but can be used to chain to other attack vectors. Given the
intended functionality of the feature is just for http/https links it makes
sense to do that verification (CVE-2021-28117).

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28117
https://kde.org/info/security/advisory-20210310-1.txt
Comment 7 Ulrich Beckmann 2021-03-15 20:37:16 CET
Installed Packages
discover.x86_64                                                          5.20.4-3.1.mga8                                                           @updates_testing-x86_64

Tested an upgrade with discover successfully.
Clicking on programs and display of contests looks fine.

Ulrich

Whiteboard: MGA7TOO => MGA7TOO MGA8-64-OK
CC: (none) => bequimao.de

Comment 8 Ulrich Beckmann 2021-03-16 17:56:15 CET
Installed Packages
discover.x86_64                                                           5.15.4-2.2.mga7                                                            @updates_testing-x86_64

Mga7 ditto. No regression found.
Note that I did not test flatpack.

Whiteboard: MGA7TOO MGA8-64-OK => MGA7TOO MGA7-64-OK MGA8-64-OK

Comment 9 Aurelien Oudelet 2021-03-17 18:20:57 CET
Same for M8 on x86_64 Plasma.
Still get: https://bugs.mageia.org/show_bug.cgi?id=27647
on opening Discover.

Basic usage on my system is to handle flatpak apps.

PackageKit's DNF backend does not seem to runs well on my system since a while. Need somewhat a reinstall or a cache delete somewhere.

MGA8-64-OK
MGA7-64-OK

No PoC, because no flatpak app listed with bogus potential link in App's description.

Validating.
Advisory pushed to SVN.

CVE: (none) => CVE-2021-28117
Keywords: (none) => advisory, validated_update
CC: (none) => sysadmin-bugs

Comment 10 Mageia Robot 2021-03-18 11:54:29 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2021-0146.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.