flathub / flathub/com.jgraph.drawio.desktop

App has unprivileged access to $HOME

Open
#236 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8
Forks
7
Avg merge
1h 4m
Merged PRs (30d)
5

Description

The app after removed $HOME filesystem permission still has access to READ and WRITE into user HOME directory and below.
That should not happen (!).

Here are my steps:

  1. Here is the default Flatpak sandbox config:

flatpak info --show-permissions com.jgraph.drawio.desktop
[Context]
shared=network;ipc;
sockets=x11;wayland;fallback-x11;
devices=dri;
filesystems=home;/usr/share/icons:ro;

[Environment]
XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons

  1. The first action i took was to prevent this app access to all user $HOME files, which is a default state, to a limited set. I used Flatseal to review and to remove the $HOME dir (I turned off the "All user files" switch), now settings are as follow:

flatpak info --show-permissions com.jgraph.drawio.desktop
[Context]
shared=network;ipc;
sockets=x11;wayland;fallback-x11;
devices=dri;
filesystems=/usr/share/icons:ro;

[Environment]
XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons

  1. The draw.io still has full access to my $HOME.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with the default permissions and with the home filesystem entry removed, using the flatpak info --show-permissions com.jgraph.drawio.desktop output shown in the issue. Trace where the application or its Flatpak configuration receives home-directory access; done means access is unavailable after the home permission is removed and the behavior is verified again.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.