[GH-ISSUE #802] Breakout through terminal #545

Closed
opened 2026-05-05 06:05:52 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @DavidBrandly on GitHub (Sep 22, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/802

Executing mate-terminal -e "sudo su -c 'whoami > /file'" in a firejail session creates a file under / as root.

Originally created by @DavidBrandly on GitHub (Sep 22, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/802 Executing `mate-terminal -e "sudo su -c 'whoami > /file'"` in a firejail session creates a file under `/` as root.
Author
Owner

@netblue30 commented on GitHub (Sep 22, 2016):

mate-terminal and a bunch of other terminals are disabled in /etc/firejail/disable-programs.inc. A real exploit going directly to DBus and exploiting gnome-terminal is described here: https://github.com/netblue30/firejail/issues/796. It should work the same for mate-terminal.

<!-- gh-comment-id:248889383 --> @netblue30 commented on GitHub (Sep 22, 2016): mate-terminal and a bunch of other terminals are disabled in /etc/firejail/disable-programs.inc. A real exploit going directly to DBus and exploiting gnome-terminal is described here: https://github.com/netblue30/firejail/issues/796. It should work the same for mate-terminal.
Author
Owner

@Fred-Barclay commented on GitHub (Sep 22, 2016):

@DavidBrandly As netblue30 mentioned, mate-terminal has been blacklisted in the last two releases of firejail due to this very behavior. Do you perchance have an older version of firejail?

Firejail 0.9.43 (current development version):

$ mate-terminal -e "sudo su -c 'whoami > /file'"
bash: /usr/bin/mate-terminal: Permission denied
$ mate-terminal -e "sudo su -c 'whoami > /file'"
dash: 1: mate-terminal: Permission denied

<!-- gh-comment-id:248983113 --> @Fred-Barclay commented on GitHub (Sep 22, 2016): @DavidBrandly As netblue30 mentioned, `mate-terminal` has been blacklisted in the last two releases of firejail due to this very behavior. Do you perchance have an older version of firejail? Firejail 0.9.43 (current development version): ``` $ mate-terminal -e "sudo su -c 'whoami > /file'" bash: /usr/bin/mate-terminal: Permission denied ``` ``` $ mate-terminal -e "sudo su -c 'whoami > /file'" dash: 1: mate-terminal: Permission denied ```
Author
Owner

@DavidBrandly commented on GitHub (Sep 23, 2016):

@Fred-Barclay I hadn't noticed that apt has been holding back firejail. It's updated now, thanks for the help!

<!-- gh-comment-id:249306281 --> @DavidBrandly commented on GitHub (Sep 23, 2016): @Fred-Barclay I hadn't noticed that apt has been holding back firejail. It's updated now, thanks for the help!
Author
Owner

@Fred-Barclay commented on GitHub (Sep 23, 2016):

@DavidBrandly No worries, mate. 😄

<!-- gh-comment-id:249308203 --> @Fred-Barclay commented on GitHub (Sep 23, 2016): @DavidBrandly No worries, mate. :smile:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#545
No description provided.