Need help to identify (apache?) exploit...
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat General > Need help to identify (apache?) exploit...




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Need help to identify (apache?) exploit...  
Jason Vance


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:56 PM

My Related URL References:
[http://www.webhostingtalk.com/showt...threadid=169024] and
[http://www.experts-exchange.com/Sec...Q_20691048.html]



I need help identifying an unknown exploit of some kind that allowed a
remote attacker to gain control of the apache user, and compile a back door
program in the /tmp directory (
http://www.myxpls.hpg.com.br/exploit/locais/bd.c) found in error_log here:



--error_log snippet--



sh: option `-c' requires an argument

--20:06:54--  http://www.myxpls.hpg.com.br/exploit/locais/bd.c

=> `bd.c'

Resolving www.myxpls.hpg.com.br... done.

Connecting to www.myxpls.hpg.com.br[200.226.137.9]:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1,828 [text/plain]



0K .                                                     100%    1.74
MB/s



20:06:54 (1.74 MB/s) - `bd.c' saved [1828/1828]



bd.c: In function `main':

bd.c:77: warning: comparison between pointer and integer



--error_log snippet--



When I stepped in the user was running the backdoor as the apache user in
memory disguised as httpd and further re-ran the backdoor program
(/tmp/localroot) and (/tmp/ptrace) shown from 'ps waux' below:



apache   32744  0.0  0.0  1364  272 ?        S    Jul25   0:00 ./ptrace

apache   32767 98.6  0.0  1348  288 ?        R    Jul25 378:36 ./localroot

apache     317  0.0  0.0  1348  296 ?        S    Jul25   0:00 httpd



I thought I was all about security until this happened.  I was up2date,
firewalled, all services/ports not being used I've turned off, CGI suexec'd,
php_safe_mode=true, etc... before this happened.



I've looked for .bash_history files, scanned apache logs ( both SSL and
error_logs and client access_logs ), /var/log/messages, recently uploaded
client files, recently added files to the system, recently modified system
files, etc... for anomolies ( SEGFAULTs, SIGHUPs, PHP, forum board abuse ),
and compared md5sum of system binaries with uninfected systems all for
naught!  The only pieces of information I have of how this exploit occurred
was in the apache error_log snippet above.



Does anyone have experience with this sort of thing?







[ Post a follow-up to this message ]



    Re: Need help to identify (apache?) exploit...  
mg ©


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:56 PM

"Jason Vance" <jason@vancetech.com> wrote in message
news:vij80qa91u2845@corp.supernews.com...
quote:
> Does anyone have experience with this sort of thing?
Excellent post, what exactly do you want help with. I'll admit I've not chec ked your related links, but if you define what exactly the problem is atmo other s may be able to help. What OS, Apache version would be a good start. Dependin g on how important the box is, I'd be up all night rebuilding if it were me. Rebu ild = format.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:31 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register