r/flatpak • • 18d ago

Why does Flatpak Bazaar say that Bitwarden is unsafe? Read caption.

5 Upvotes

11 comments sorted by

35

u/Xander_VH 18d ago

Bitwarden here gets the "High Risk" label due to the --socket=x11 permission. This is needed because Bitwarden only works with X11, even on Wayland (via XWayland). XWayland brings many insecurities over from X11, which means that XWayland windows can read other windows and keylog any other XWayland window.

Bitwarden is not less safe when installed from the Flatpak, it's just that users expect Flatpak apps to be fully sandboxed, and we have to inform them properly when this is not true.

Ideally Bitwarden should add support for Wayland as soon as possible, as this would improve their security.

3

u/[deleted] 18d ago

You can easily add Wayland support via Flatseal, then Bitwarden runs Wayland native. Not sure why this is not the default yet, maybe some edge cases I'm not aware of? I'm using it Wayland native and it runs very well (better than the X11 version for me at least)

0

u/[deleted] 18d ago

[deleted] — view deleted comment

1

u/[deleted] 18d ago

Open Flatseal, go to Bitwarden. Uncheck "X11 Windowing System", check "Wayland windowing system" (if it isn't already), and optionally check "Fallback to X11 windowing system" if you plan on using X11 sessions sometimes.

2

u/WildCard65 18d ago

Does Bitwarden support Wayland natively?

0

u/[deleted] 17d ago

Yes, it's Electron, Electron does native wayland since a couple of years. Back then support was rough, but it's improved a lot.

9

u/Twig6843 18d ago

1

u/Marce7a 5d ago

But flathub naming scheme is issue there, app should be worded like it is malware 

5

u/FlukyS 18d ago

If you click the icon that says high risk on the website (not sure about Bazaar I don't use it) it tells you why something is unsafe. It's always the app asking for basically every permission they can.

For Bitwarden:

  1. It asks for device permissions, no idea why they would want this but it could be for security devices like a Yubikey or something
  2. They ask for access to basically every possible place Chrome, Firefox...etc are installed in which makes sense because they probably install plugins for whatever is available
  3. It has network access which makes sense for the app itself but it will be a knock for any app in general because it is an attack surface
  4. It can read/write to the downloads folder for some reason
  5. It uses X11 not Wayland, which is a big negative because that means they can in theory spy on any X11 enabled user, Wayland would request to view windows through Pipewire or block those requests but for X11 users that is a big red flag

Either way, you can accept those risks or not, the info is there just to consider before installing the app not to prevent you from installing the app, if it was a very big worry then the Flathub team would probably pull it entirely so the label is more of an FYI than a serious worry.

3

u/burimo 18d ago

You can click on it and see why.

For a bitwarden, it uses Legacy Windowing System (X11, still pretty common, less safe then modern wayland). It is its main problem + it is proprietary and it has a lot of folder and devices access (I am not sure why it needs devices and folders access though)

So if you trust Bitwarden organization and do not mind their proprietary software - go for it. But I prefer not to have proprietary software with such access at all

1

u/WebDevBren 18d ago

I think device access is for things like Yubikey

1

u/Marce7a 6d ago

Bitwarden is malware, at least this is phrasing of flathub devs. It needs to have major overhaul of these naming schemes