A CMSMS website was hacked this week. I have sorted out most of the 'nasties', but asked the website host to run a security scan on the server to check for anything left.
The malware scan came up with 3 'hits'. These were:
./public_html/***/modules/FormBuilder/lang/ext/nb_NO.php
./public_html/***/modules/FormBuilder/lang/ext/nb_NO.php
./public_html/modules/CGExtensions/lib/htmLawed.php
These files date from, or before, May this year. I just wonder if anyone has come across these before.
Would it be safe to delete them?
Thanks
Martin
As these files hacked/hackers or genuine?
-
burlington
- Power Poster

- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: As these files hacked/hackers or genuine?
Beware of false positive tests.The malware scan came up with 3 'hits'. These were:
Your best solution is to re-download the modules and copy over those files from a known good source.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
burlington
- Power Poster

- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: As these files hacked/hackers or genuine?
Thanks. That is a relief.
As part of my present worries is the strange news that my webspace (not domain name) is in now in someone else's name, In others I am no longer the account holder- after 14 years!
Odder and odder. Perhaps, when I wake up, things might be normal!
As part of my present worries is the strange news that my webspace (not domain name) is in now in someone else's name, In others I am no longer the account holder- after 14 years!
Odder and odder. Perhaps, when I wake up, things might be normal!
Re: As these files hacked/hackers or genuine?
To be on the safe side don't overwrite the files, but delete the whole folder and upload the new one. That in case a non-CMSMS file/script is in there...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
burlington
- Power Poster

- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: As these files hacked/hackers or genuine?
Thank you.
The hacker left something behind! Looking at the 'source' of a page on-screen I see:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sanjungan Jiwa</title>
<link href="http://fonts.googleapis.com/css?family=VT323" rel="stylesheet" type="text/css">
<style type="text/css">
body,td,th {
color: #000;
font-family: VT323;
background-color:#030000;
}
</style>
</head>
This is the hack BUT I can't find out how to get rid of it. It is not in the template(s), stylesheets etc. It appears on all pages.
Any advice would be great please.
The hacker left something behind! Looking at the 'source' of a page on-screen I see:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sanjungan Jiwa</title>
<link href="http://fonts.googleapis.com/css?family=VT323" rel="stylesheet" type="text/css">
<style type="text/css">
body,td,th {
color: #000;
font-family: VT323;
background-color:#030000;
}
</style>
</head>
This is the hack BUT I can't find out how to get rid of it. It is not in the template(s), stylesheets etc. It appears on all pages.
Any advice would be great please.
Re: As these files hacked/hackers or genuine?
There are a few topics about this on the forum already IIRC...burlington wrote:The hacker left something behind!
Check if the index.php files (there shouldn't be many) and or index.html files have not been hacked. Recent attacks to php scripts add code to these files, which in the case of the root index.php would mean that the code would end up being included on all pages.
Better yet: grab a copy of the same version of CMSMS you are using and overwrite all the files of your installation.
Recommendations:
- - Backup everything (files and DB);
- - remove the install folder as you won't need it;
Further recommendations:
- - Backup everything again;
- - Setup frequent backups so that you have a recent clean version of the whole site to comeback to;
- - Search and test of other CMSs for vulnerabilities (I don't believe that the hack came from a CMSMS vulnerability unless you have left the install folder there...);
- - Change all credentials on all accounts ASAP (including CPanel or similar);
"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!
* 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!
-
burlington
- Power Poster

- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: As these files hacked/hackers or genuine?
Jo. Many thanks.
You suggested I grab a copy of 1.11.12, which the site in question is being run on. However, I can't find it on the CMSMS system.
Any ideas would be welcome. Thanks.
Martin
You suggested I grab a copy of 1.11.12, which the site in question is being run on. However, I can't find it on the CMSMS system.
Any ideas would be welcome. Thanks.
Martin
Re: As these files hacked/hackers or genuine?
http://dev.cmsmadesimple.org/project/fi ... ackage-618
Somewhere down that list a bit.
I would also recommend an upgrade to at least 1.12.1 if possible. if there are any vulnerabilities in CMSMS the latest version of the branch should have solved them too.
Somewhere down that list a bit.
I would also recommend an upgrade to at least 1.12.1 if possible. if there are any vulnerabilities in CMSMS the latest version of the branch should have solved them too.
"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!
* 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!
Re: As these files hacked/hackers or genuine?
Don't forget to change server passwords...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -


