snodew: PHP root (suid) reverse shell
snodew is a PHP reverse shell backdoor which uses a small suid binary to escalate privileges on connection
snodew is made mainly to work alongside vlany but can also be setup as a regular root backdoor.
usage
notes
- requires a web service to be running on the box (along with php support for the service package)
- sh process spawned from service user is visible, though this could be subverted by checking /proc/self/cmdline and hiding the process if it contains the hidden suid bin
- if not being used alongside some kind of rootkit, everything you do is visible
- it’s only a reverse shell
- when vlany is installed, simply su’ing to the service user won’t allow them to see the files. vlany checks to see if an apache environment variable is also exported before giving access to the file, and does the same for nginx so that – by default – the file can only be accessed from a browser or from an owner shell
- exporting the apache environment variable that vlany checks, after su’ing to the service user will circumvent this
- suid possibly disabled
- not using ‘exit’ to exit the shell will leave the process spawned by the service in process lists (ps, top etc)
Source: Github