Please report it privately, through GitHub: Report a vulnerability (the Security tab → Report a vulnerability). Don't open a public issue for it.
Foresight has one maintainer. I'll reply as soon as I can and keep you posted in the advisory until it is fixed or closed. Say whether you'd like credit.
Only the latest release gets security fixes. A fix ships as a new release through the Flatpak repo and GitHub Releases.
These are the promises a report would most likely be about:
- Your private SSH keys never enter the sandbox. Remote sync uses your SSH
agent through
--socket=ssh-auth. The agent stays outside the sandbox and only signs on request, so the key itself is never visible to Foresight. ~/.sshis never read or written. Foresight keeps its ownknown_hostsin its config folder. A host is trusted only after you confirm its fingerprint, and transfers run withStrictHostKeyChecking=yes, so an unknown or changed host key stops the transfer.- No access to your home folder. Folders come through the file chooser
portal, one at a time, as you pick them. The sandbox has no
--filesystem=homeor--filesystem=host. - No shell. rsync is started with an argument list, never through a shell,
so a file name or pattern can't run a command. The one string rsync parses
itself, the
-essh command, is quoted or refused (seessh.rs).
A way around any of these is a vulnerability. Please report it.
Foresight bundles its own rsync. A flaw in rsync belongs upstream at rsync's security policy. It's still worth telling me, so the bundled copy gets bumped.