-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
command execution should be prevented by context #466
Comments
There are also issues with other commands like |
I was about to open another issue for this but I think it's sufficiently related that putting it here makes sense - apologies if you disagree. The allowed list of commands is only check in a basic way. For instance ls # works
id # doesn't work
ls; id # doesn't work
ls && id # both commands run correctly Essentially |
Came here to say what @mattdavis90 said. I actually didn't even try ls && id # both commands run correctly but I found that ls ; id does work ( the space after |
Maybe I am missing something here, but isn't access to Dockge not already equivalent to root access on the host anyway? If so, why are we even trying to filter commands at all? Because if this is for security, there a probably many ways such filters can be bypassed. I feel like trying to chase all of them down is unnecessary effort. Given the I have been able to run
which maps the whole filesystem of the host into the |
🛡️ Security Policy
Description
First of all, Thanks for this awesome project and great work!
You've implemented a superb feature to ensure security of the host. This is evident by allowing only these commands in console tab: "docker, ls, cd, dir"
Unfortunately, I ran into an issue when I executed "docker exec -it container sh"
I couldn't exit it, as it's prohibited.
👟 Reproduction steps
Download this dockge image as recommended:
louislam/dockge:1
👀 Expected behavior
exit command should be allowed in the context
😓 Actual Behavior
can't exit.
Dockge Version
1
💻 Operating System and Arch
Debian bullseye
🌐 Browser
Firefox Nightly
🐋 Docker Version
Docker 25
🟩 NodeJS Version
NA
📝 Relevant log output
The text was updated successfully, but these errors were encountered: