2 ms·
Not really. Attacker can execute their own shell from your profile script. Who knows how it will handle paths. Depending on configuration, this can be prevent
by AstralStorm 9y ago
Not really. Attacker can execute their own shell from your profile script. Who knows how it will handle paths.
Depending on configuration, this can be prevented with noexec mount, selinux or SMACK. Grsecurity and RSBAC can prevent unwanted exec.
Systems like apparmor, or grsecurity MAC, TOMOYO or YAMA do not work against executing wrong executables.
IMA (signing and verifying files) can work too.
All bets are off in case there is a local root exploit in kernel or any setuid app.