PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Tue Jun 12, 2007 5:52 pm Reply with quote Back to top

Could any of you guys look at my site and let me know where the problem is?
My site has been hacked since this morning
Only registered users can see links on this board!
Get registered or login to the forums!


Last edited by checksum on Wed Jun 13, 2007 10:43 pm; edited 1 time in total
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Jun 12, 2007 5:55 pm Reply with quote Back to top

Looks like the code was replaced with some nasty Javascript

It could be anywhere, hacked files... hacked database, etc.
View user's profile Send private message Visit poster's website
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Tue Jun 12, 2007 6:06 pm Reply with quote Back to top

yes I see the javascript, how can I locate it and delete it?
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 12, 2007 6:27 pm Reply with quote Back to top

Look for recently changed files.
View user's profile Send private message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Tue Jun 12, 2007 6:33 pm Reply with quote Back to top

That's what I am doing, but it's hard
I see config.php 5/6/2007 but when I look into it I do not see the javascript code

Can I give you access to my ftp in you PM so you can help me locate it?
View user's profile Send private message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Tue Jun 12, 2007 7:00 pm Reply with quote Back to top

I did a search in the entire database, and I could not find anything javascript.

I could not see any fils or folders modified 6/12/07, it happened this morning
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 12, 2007 7:24 pm Reply with quote Back to top

It could be in your database - check the messages, news and blocks tables.
View user's profile Send private message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Tue Jun 12, 2007 7:54 pm Reply with quote Back to top

I downloaded the whole database and did a search, no javascript found
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 12, 2007 8:34 pm Reply with quote Back to top

OK. I looked at the site. If there aren't any new files (e.g. index.html, index.htm) or changes to your index.php (assuming it's PHP-Nuke), I'd check the includes and themes directory for changes to files there.
View user's profile Send private message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Tue Jun 12, 2007 10:20 pm Reply with quote Back to top

could he be pulling the javascript from somewhere else, such that when i do a search on the javascript code, i do not find anything?
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 12, 2007 10:37 pm Reply with quote Back to top

Something in mainfile...haven't found it yet.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 12, 2007 10:51 pm Reply with quote Back to top

You need to check with your host. There is a bigger problem. It looks like they are adding a google analytics reference that is interfering with your scripts. I added an info.php file, and all it does is execute phpinfo. Even that has the google analytics stuff. Is this a free host?

Don't forget to remove the info.php after you verify.
View user's profile Send private message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Tue Jun 12, 2007 10:55 pm Reply with quote Back to top

no, it is a VPS, I have access to the server too. I can give you access to the server also
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 12, 2007 10:59 pm Reply with quote Back to top

Is it managed? If so, have them check the configuration. Even regular .html files are loading the google-code script.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jun 12, 2007 11:04 pm Reply with quote Back to top

Sorry - it's pointing to google-counter.com Probably to drive up adsense or some other nonsense. Giving me VPS access won't help - I wouldn't know where to start. But it's definitely not your script, though you should have different passwords for cpanel, database and nuke admin. Not sure if that's the case, but you should also update your NukeSentinel - it looks a few versions old.
View user's profile Send private message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Tue Jun 12, 2007 11:09 pm Reply with quote Back to top

I don't know what you mean by managed, but I do have pretty much control of the server. I have sent them an email, I will see what they say, and if they can identify the root cause.

Thank you for your help
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9133
Location: Arizona

PostPosted: Wed Jun 13, 2007 6:28 am Reply with quote Back to top

checksum, there are typically two levels of service provided by hosting companies for a VPS and dedicated. There is "managed" and "not managed". "managed" is more expensive, but generally speaking, if the plan is a good one, the hosting company will do almost anything you need done at the server level. Let's face it, most of us are not server admins, so we need help from time-to-time. If your plan is not "managed", then there may be a charges for support tickets.

In other words, it boils down to how much help you can expect to get from your hosting company for your VPS or dedicated server.
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Jun 13, 2007 6:49 am Reply with quote Back to top

Looks like it's working now. Please let us know the details.
View user's profile Send private message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Wed Jun 13, 2007 5:02 pm Reply with quote Back to top

Hi,

Sorry for the delay, was at work.

They fixed it early this morning I pointed them to this thread also.
Here is what they said:


Could you please chech now, that code shouldn't load on your pages anymore.
It was exploit that is using bug in mod_layout apache module. I've disabled it, and your serevr is safe now.
Best regards,
Tom H.
HostForWeb Inc.

Thank you kguske for your help
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Jun 13, 2007 8:46 pm Reply with quote Back to top

Thanks for following up. Don't forget to remove the info.php file in your Nuke root. Make sure have different cPanel, VPS, and Nuke database user IDs / passwords for extra security...
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Thu Jun 14, 2007 5:14 am Reply with quote Back to top

One more follow up - can you get some details (i.e. a link) on this exploit from your host? That was a particularly nasty issue, and we couldn't find any details about it based on the response.
View user's profile Send private message
checksum
Hangin' Around


Joined: Jun 30, 2003
Posts: 39

PostPosted: Thu Jun 14, 2007 7:05 pm Reply with quote Back to top

Ok, will do
View user's profile Send private message
CodyG
Life Cycles Becoming CPU Cycles


Joined: Jan 02, 2003
Posts: 668
Location: Vancouver Island

PostPosted: Tue Jun 26, 2007 12:04 am Reply with quote Back to top

any updates?
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum