4 ms·
Just because you have full "shell" access to the container doesn't necessarily imply any thing needs to be mitigated. What do you mean? It's an arbitrary RCE -
by pvg 8y ago
Just because you have full "shell" access to the container doesn't necessarily imply any thing needs to be mitigated.
What do you mean? It's an arbitrary RCE - a scenario that's generally treated as game over. What specifically are the concerns you don't have if that happens to a system of yours?
- anonymousJim12 8y agoremote code execution doesn't really mean much in an un-privileged container. They could be using cgroup limits, capability drops, MAC, seccomp, etc etc Now, I'm not saying that containers are super tight by default. It is entirely possible this particular container env is wide open, but I didn't really see anything too concerning from the parents analysis.
- pvg 8y agoremote code execution doesn't really mean much in an un-privileged container. It means pretty much everything. Have you ever heard of someone reporting an RCE in a major service and it being treated as no big deal? They're invariably treated as catastrophic compromise because it is. The jump from RCE to privilege escalation, escape, etc is nothing compared to the actual RCE-ing.
- MadcapJake 8y agowhen the platform is itself about RCE... I think you have to evaluate what specific dangerous code can be executed before you start lighting the torches.
- tptacek 8y agoIn a very carefully configured container regime, you might not be getting anything other than the access the API already had to run code submitted by users. You'd have RCE, but your code can only do the limited set of things permitted by the container; it might not have access to any meaningful filesystem, or to the network, or to the container engine. It's very tricky to create and maintain those kinds of container systems, but there are services (for instance, the cloud CI providers) that do it. On applications like these, where the premise is that you give them some kind of code and they evaluate it for you, escaping the "user interface" sandbox isn't game over; you'd have to finish the exercise of escalating to the container host or getting access to an internal network with internal APIs on it. It's a little like getting SQL injection, but confined to some kind of SQL view. Chances are the application is doomed, but you still have to prove it.
- pvg 8y agoRight, I understand that but you'd not pick a container as your primary line of isolation for running arbitrary Go code. The GP is saying - it's cool, because containers. Yes, perhaps in exceptionally skilled hands, maybe this is sane but generally it's not. The official go playground's first sandbox is Native Client.
- tedunangst 8y agoCan we not stipulate the existence of a container breakout of the week?
- anonymousJim12 8y agoCan you link to a container breakout exploit from the past 6 months?