Path exploits¶
Become root on Linux using path:
Search for files with incorrectly installed authorities that are on
PATHChange
PATHUse script or program
Example¶
What folders are located under
$PATH?
$ echo $PATH
Does current user have
writeprivileges for any of these folders?
find / -writable 2>/dev/null | cut -d "/" -f 2,3 | grep -v proc | sort
Can
$PATHbe modified?Is there a script/application that will be affected by this vulnerability?
Notes¶
Not really exploit usage, but based on files with incorrectly installed authorities.