SUID SO Injection
# Enumerate SUIDs
$ find / -type f -perm -u=s 2>/dev/null
/var/www/html/wordpress/blog/backup-sync
# Check file type
$ file /var/www/html/wordpress/blog/backup-sync
/var/www/html/wordpress/blog/backup-sync: setuid ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=412e632d65575e1c9de841c1f5400fe63c1c6878, for GNU/Linux 3.2.0, not stripped
# Check permissions
$ ls -la /var/www/html/wordpress/blog/backup-sync
-rwsr-xr-x 1 root root 16728 Mar 27 11:15 /var/www/html/wordpress/blog/backup-sync$ strace /var/www/html/wordpress/blog/backup-sync 2>&1 | grep -iE "open|access|no such file"
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/x7331/.lib/libsecurity.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)$ strings backup-sync | grep dlopen
dlopen
dlopen@GLIBC_2.34Last updated