Take for example this program that backs up all files. It uses tar to do so.


We can run export PATH=/dev/shm:$PATH
so that the first place tar is looked for in the $PATH would be /dev/shm

from here, we can make a lil nasty lil sexy ass lil vulnerable tar program that doesn't actually do tar at all :) and root runs it :)

