Site hacked ?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Neow
Forum Members
Forum Members
Posts: 33
Joined: Wed Nov 19, 2008 1:39 pm

Site hacked ?

Post by Neow »

Hello,

I sent a topic few days ago, but I can't find it... So I re-post. I think one of my websites has been hacked. Some people and I had antivirus and firewall alerts when accessing some pages, and I found a strange code in the end of the source code, after the html tag. I can't find it anywhere in the template or in content.
It looks like the virus, if it is a virus, appears when accessing the site or the admin.

What can I do ?

Thanks,
Last edited by M@rtijn on Tue Dec 27, 2011 6:16 pm, edited 1 time in total.
Reason: Link removed by moderator
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Site hacked ?

Post by Dr.CSS »

If it is a hack and it shows at the end of the template/page look in the index.php in the root of the site for any hack/code...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Site hacked ?

Post by Wishbone »

Which version of CMSMS? 1.9.4.2 and earlier had a security issue with the News module.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Site hacked ?

Post by staartmees »

Those are the risks of shared hosting. With FTP you can see when your index.php was changed. Just replace your index.php with the orginal one. Then look for some unusual files in your cms-directory with the same date as your hacked index.php and remove them.
Neow
Forum Members
Forum Members
Posts: 33
Joined: Wed Nov 19, 2008 1:39 pm

Re: Site hacked ?

Post by Neow »

It is CMSMS 1.6.6.

I'll try to look in the index.php file and I'll go back when it's done, thanks.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Site hacked ?

Post by staartmees »

no wonder your site got hacked, 1.6.6 is way too old.
Neow
Forum Members
Forum Members
Posts: 33
Joined: Wed Nov 19, 2008 1:39 pm

Re: Site hacked ?

Post by Neow »

In fact, all my websites using CMSMS have been "hacked"... Even those using the most recent version of CMSMS.
Each time, it was the same trojan, and each time, the same files were infected : index.php in the cms root folder, and index.php, home.php and footer.php in the admin folder. Deleting these files and remplacing it by the original files solve the problem.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Site hacked ?

Post by Jo Morg »

I had that problem once, with one site, and it turned out to be a virus on the server (all it takes is someone using FileZilla on an infected PC since it doesn't encrypt the site data). So, apparently my client had a virus, can't remember the name now. With that data all the virus had to do was to add a line to all index.* files after the < / html > tag that triggered a js on a remote server. The server was no longer on-line by the time Google flagged the site. It seems that it took only a few weeks before someone unplugged the hacker's site, so basically there was no harm done, except for all the trouble of cleaning ALL index files (don´t forget all those empty index.html files all over cmsms folders).
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Site hacked ?

Post by Rolf »

Neow wrote:In fact, all my websites using CMSMS have been "hacked"... Even those using the most recent version of CMSMS.
Each time, it was the same trojan, and each time, the same files were infected : index.php in the cms root folder, and index.php, home.php and footer.php in the admin folder. Deleting these files and remplacing it by the original files solve the problem.
Can you be sure, there isn't still a 'bad' script/file at your server that could hack your website again, and again, and...
I have seen it before. Just replacing the changed core files isn't enough... The real problem is still there.

grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Marre
New Member
New Member
Posts: 6
Joined: Mon Feb 20, 2012 2:47 pm

Re: Site hacked ?

Post by Marre »

Hello,

I have exactly the same problem as above. My site is getting hacked again and again, same files involved :(

I'm a teacher and this is the class' site we've made for a contest. This is the first time I'me using cmsmadesimple. I don't understand what I'm doing wrong.

I use the latest version: 1.10.3, I'm on the contest's server.

Yesterday night I've cleaned everything on my server, installed again the 1.10.3 (juste I didn't creat the DB because it was already created and has my datas), changed the config.php to 444, changed the admin folder's name.

At 8 AM I was hacked again, same way :(, again around 3PM. Worst, I suspect that I've been infected with internet security virus 2012 by visiting my hacked site this morning -_- (I've fixed it on my computer).

Please, could you help me to stop that difinitely ? the end of the contest is less then 1 month and we can't work on it with the children :(
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Site hacked ?

Post by M@rtijn »

Yesterday night I've cleaned everything on my server, installed again the 1.10.3 (juste I didn't creat the DB because it was already created and has my datas), changed the config.php to 444, changed the admin folder's name.
Did you also change all your passwords?
Make your community a better place!
Marre
New Member
New Member
Posts: 6
Joined: Mon Feb 20, 2012 2:47 pm

Re: Site hacked ?

Post by Marre »

Thank you for your answer.

I did change my phpmyadmin password, my CMSMS Admin login and password, but I didn't change the student's accesses (should have ?). I could not change my ftp password also.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Site hacked ?

Post by Jo Morg »

Marre wrote:I did change my phpmyadmin password, my CMSMS Admin login and password, but I didn't change the student's accesses (should have ?). I could not change my ftp password also.
Students can be asked to change their own passwords, but maybe not worse case. FTP passwords MUST be changed ASAP.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Marre
New Member
New Member
Posts: 6
Joined: Mon Feb 20, 2012 2:47 pm

Re: Site hacked ?

Post by Marre »

ok, well I'll have to ask the support. I have no information about how I can change my ftp password...

One hour ago I've juste delated every thing on my server to put a new single index.html with a maintening message. Guess what ? some minutes ago it was infected also. Isn't that the proof that the problem comes from my hosting platform ? or could it be some hidden files or whatever (I have very poor knowledge about hosting) ?

I've contacted the support the first time I had the problem but they said it was cmsms's fault.

I'll keep you informed of their answer. Thank you all for your time.
Neow
Forum Members
Forum Members
Posts: 33
Joined: Wed Nov 19, 2008 1:39 pm

Re: Site hacked ?

Post by Neow »

My websites were also hacked again and again. Same files : index.php and index, footer and home in the admin folder. It seems that changing ftp password resolved the problem... for now.
Post Reply

Return to “The Lounge”