apache user submitting file /tmp (exploit)
How to find out which account is sending the file in the /tmp directory?
-
have you tried the "iotop" tool? 0 -
iotop is for viewing writing and reading on disk. ... 0 -
Is there another way to find out? /scripts/ securetmp solves the problem? 0 -
The following should do this: grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n
securetmp forces it to be remounted with the nosuid option. This forces a process to run with the same privileges of the user who executes it. It does not keep a user from being able to send mail via a script Tips to Make Your Server More Secure | cPanel & WHM Documentation0 -
[root@kepler ~]# grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n 1 1 /home/artelaje/public_html/site/contato 1 /home/blubiers/public_html 2 /home/chiodini/public_html 3 /home/demasul/public_html 4 /usr/local/cpanel/whostmgr/docroot 5 /root 10 /home/grupostarke/public_html 12 /home/babybear/public_html/wp-admin 16 /home/portecsc/public_html/scripts 25 /home/fortcom/public_html 36 /home/babybear/public_html 142 / [root@kepler ~]# 0 -
can i run the securetmp? 0 -
There's nothing stopping you from running /scripts/securetmp
but it will not stop this behavior. None of your users is sending "from" tmp0 -
How do I find the vulnerable file ? 0 -
You need to look for the script in the directory mail is originating from as I suggested earlier. 0 -
The above command accounts, which may be vulnerable ? 1 /home/artelaje/public_html/site/contato 1 /home/blubiers/public_html 2 /home/chiodini/public_html 3 /home/demasul/public_html 4 /usr/local/cpanel/whostmgr/docroot 5 /root 10 /home/grupostarke/public_html 12 /home/babybear/public_html/wp-admin 16 /home/portecsc/public_html/scripts 25 /home/fortcom/public_html 36 /home/babybear/public_html 142 /0 -
I already scanned the server. It has malware in wordpress files. I just want to know which files are sending to /tmp 0 -
Do you have a problem disabling commands (wget, curl, lynx) and putting permission only for root? 0
Please sign in to leave a comment.
Comments
13 comments