Information
The root user can execute any command on the system and could be fooled into executing programs unintentionally if the PATH is not set correctly.
Including the current working directory (.) or other writable directory in root 's executable path makes it likely that an attacker can gain superuser access by forcing an administrator operating as root to execute a Trojan horse program.
Solution
Correct or justify any:
- Locations that are not directories
- Empty directories ( :: )
- Trailing ( : )
- Current working directory ( . )
- Non root owned directories
- Directories that less restrictive than mode 0755
Impact:
A compromised or misconfigured root PATH can cause the root user to inadvertently execute a trojan program placed in a world-writable directory - this is a classic privilege escalation vector.