mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #613] [MERGED] Fix improper quoting of arguments #3684
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3684
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/613
Author: @manevich
Created: 7/4/2016
Status: ✅ Merged
Merged: 7/5/2016
Merged by: @netblue30
Base:
master← Head:manevich-fix-quoting-1📝 Commits (2)
cbdf71aFix improper quoting of argumentsd578c4cFix improper quoting of arguments📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
src/firejail/join.c(+2 -2)📝
src/firejail/main.c(+1 -1)📄 Description
Using double quote instead of single quote for
cfg.command_lineallows arbitrary command execution inside of jail if command args (eg. filenames) contain special sequences (backtick, $(), etc).How to reproduce:
touch 'uname -a'touch '$(cal)'in same directory:
firejail cat *uname*command
uname -awill be executed in jailfirejail cat *cal*command
calwill be executed in jail.This hopefully fixes it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.