Suspicious .tmp Directory

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
Hello,

I have been noticing a common hack over Wordpress on lot of servers. it will create a backdoor in /tmp/.tmp directory. Same kind of hack on all servers!!!!!

I am sorry, I cannot comeup with more explanation now ! But just would like to know any others are experiencing the same issue!

PS: the subject should be Suspeciuos .tmp directory

Thank you,
Nibin,.
 

mtindor

Well-Known Member
Sep 14, 2004
1,463
114
193
inside a catfish
cPanel Access Level
Root Administrator
That could be malicious, or might not be. CSF is telling you the directory is suspicious -- but that does not _guarantee_ that it is malicious. It just means it is something you should look into.

Just out of curiosity, do you have one or more customers using "shortcode generator" plugin for Wordpress? If so, I think it will create things in /tmp/.tmp/###### (where ###### is today's date, such as YYMMDD -- 120206).

If it's not shortcode generator doing it, then indeed you need to continue looking to make sure it isn't something malicious. But "suspicious" doesn't always equal "malicious".

M
 

Curious Too

Well-Known Member
Aug 31, 2001
437
2
318
cPanel Access Level
Root Administrator
Hello,

I have been noticing a common hack over Wordpress on lot of servers. it will create a backdoor in /tmp/.tmp directory. Same kind of hack on all servers!!!!!

I am sorry, I cannot comeup with more explanation now ! But just would like to know any others are experiencing the same issue!

PS: the subject should be Suspeciuos .tmp directory

Thank you,
Nibin,.
It's a WordPress hack. See this thread at Webhosting Talk: lfd Suspicious File Alert‏ File: /tmp/.tmp Suspicious directory - Web Hosting Talk

If you know which sites are generating the file update those sites as soon as possible. If they are up to date and generating that file, remove the wp-admin and wp-includes directories and manually re-install the latest WordPress files/folders.
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
Hello,

But the worst thing is, I found this hack on many sites without timthumb.php or "shortcode generator" plugin. Most of the WP installations are run by version 3.0.

Anyway, thanks for your input geeks :)

Thank you,
Nibin.
 

mauriciocastro

Registered
Apr 17, 2012
1
0
51
cPanel Access Level
Root Administrator
resolved my clients:

login in root:

nano check_thumbs.sh


INCLUDE:



Code:
#!/bin/bash
## ====================================
# This checks all php files in all document roots
# for old TimThumb code then overwrites them with
# the latest version
## ====================================
echo
dnow=`date +%Y%m%dT%H%M%S`

## ====================================
# Get the most current version of TimThumb.php
## ====================================
wget [url]http://timthumb.googlecode.com/svn/trunk/timthumb.php[/url] -O ~/timthumb.php

## ====================================
# Generate a list of files, then overwrite them
## ====================================
echo 'Searching for TimThumb files...please be patient (might take hours)'
grep '(code.google.com/p/timthumb|timthumb.googlecode.com/svn/trunk/timthumb.php)' /home/*/public_html -lroE --include=*.php* > ~/timthumb-$dnow.txt

OLD_IFS=$IFS
IFS=$'\n'
for eaTim in `cat ~/timthumb-$dnow.txt`
do
## ====================================

## ==================================
# Overwrite with current version and chown to proper owner
user=`echo $eaTim | awk -F"/" '{print $3}'`
echo Overwriting $eaTim user $user
cp timthumb.php "$eaTim"
chown $user:$user "$eaTim"
## ==================================

## ====================================
done
IFS=$OLD_IFS
## ====================================

## ====================================
# all done!
## ====================================


#SAVE...

next: sh check_thumbs.sh

it necessary to include in cron to find sites with thumb...