flatpak: CVE-2023-28101: escape characters in metadata can hide permissions changes

Related Vulnerabilities: CVE-2023-28101  

Debian Bug report logs - #1033098
flatpak: CVE-2023-28101: escape characters in metadata can hide permissions changes

version graph

Reported by: Simon McVittie <smcv@debian.org>

Date: Fri, 17 Mar 2023 09:42:01 UTC

Severity: serious

Tags: fixed-upstream, pending, security

Found in version flatpak/0.6.0-1

Fixed in versions flatpak/1.14.4-1, flatpak/1.15.4-1

Forwarded to https://github.com/flatpak/flatpak/security/advisories/GHSA-h43h-fwqx-mpp8

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, team@security.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#1033098; Package flatpak. (Fri, 17 Mar 2023 09:42:04 GMT) (full text, mbox, link).


Acknowledgement sent to Simon McVittie <smcv@debian.org>:
New Bug report received and forwarded. Copy sent to team@security.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Fri, 17 Mar 2023 09:42:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Simon McVittie <smcv@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: flatpak: CVE-2023-28101: escape characters in metadata can hide permissions changes
Date: Fri, 17 Mar 2023 09:38:35 +0000
Package: flatpak
Version: 0.6.0-1
Severity: serious
Tags: security pending fixed-upstream
X-Debbugs-Cc: Debian Security Team <team@security.debian.org>
Forwarded: https://github.com/flatpak/flatpak/security/advisories/GHSA-h43h-fwqx-mpp8
Control: fixed -1 1.14.4-1
Control: fixed -1 1.15.4-1

When installing or upgrading a Flatpak app using the flatpak(1) CLI,
the user is normally shown any special permissions that the new app has
in its metadata, so that they can make a somewhat informed choice about
whether to allow its installation.

Ryan Gonzalez discovered that malicious Flatpak app maintainers could
manipulate or hide this display of permissions by requesting permissions
that include ANSI terminal control codes or other non-printable characters.
This was fixed in Flatpak 1.14.4, 1.15.4, 1.12.8 and 1.10.8 by displaying
non-printable characters in an escaped format (\xXX, \uXXXX, \UXXXXXXXX)
so that they do not alter the terminal's behaviour, and also by treating
non-printable characters in certain contexts as invalid (not allowed).

Graphical frontends for libflatpak, like GNOME Software and KDE Plasma
Discover, are not directly affected by this. When retrieving an app's
permissions to show to the user, the graphical frontend continues to be
responsible for filtering or escaping any characters that would have a
special meaning for its GUI libraries.

I've already contacted the security team asking for permission to upload
1.10.8 as a security update for bullseye.

    smcv



Marked as fixed in versions flatpak/1.14.4-1. Request was from Simon McVittie <smcv@debian.org> to submit@bugs.debian.org. (Fri, 17 Mar 2023 09:42:04 GMT) (full text, mbox, link).


Marked as fixed in versions flatpak/1.15.4-1. Request was from Simon McVittie <smcv@debian.org> to submit@bugs.debian.org. (Fri, 17 Mar 2023 09:42:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Mar 17 13:09:00 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.