-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private-cwd leaks access to the entire filesystem #4780
Comments
@WhyNotHugo Nice find! Thanks for reporting. @rusty-snake I'm new to marking issues to a |
Fixed: d2e10f8 Very cool bug, thanks! |
The command in the example above no longer works: $ firejail --private --private-cwd=. /usr/bin/sh
Error: invalid private working directory |
@WhyNotHugo commented on Dec 20:
Hello, could you open a new issue for this? |
Note: netblue30#4780 was fixed on commit d2e10f8 ("fix --private-cwd problem", 2021-12-19). Relates to netblue30#4748 netblue30#4780.
Note: netblue30#4780 was closed by commit d2e10f8 ("fix --private-cwd problem", 2021-12-19). Relates to netblue30#4748 netblue30#4780.
Note: netblue30#4780 was closed by commit d2e10f8 ("fix --private-cwd problem", 2021-12-19). Relates to netblue30#4748 netblue30#4780.
Note: netblue30#4780 was closed by commit d2e10f8 ("fix --private-cwd problem", 2021-12-19). Relates to netblue30#4748 netblue30#4780.
这个问题还没有修复 |
Description
Using
firejail --private --private-cwd=. /usr/bin/sh
leaks access to the entire filesystem.Steps to Reproduce
cd
into some subdirectory of$HOME
.ls ../../some-file
(for a relative path that exists).cat
also works.Expected behavior
Access to these files should not be possible.
Actual behavior
Access to files using relative paths is permitted, allowing access to the entire filesystem.
Note: changing directory into those locations does not work, but reading files without changing directory does.
Behavior without a profile
n/a
Additional context
Environment
Checklist
(removed some non-applicable items)
browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.The text was updated successfully, but these errors were encountered: