Our drupal site was hacked at some point recently, and I've been tasked to clean it up because nobody knows much about drupal here. I think I've taken care of most of the glaring security holes, and updated all the modules I could, but I've discovered there's still some gibberish/potentially malicious code on the site that I can't seem to track down.
At the top of every page drupal includes the site's CSS files, and then there's the three IE conditional blocks that are included in the seven_preprocess_html()
function in themes/templates/seven/template.php
. Immediately below those conditionals is the following block (I can't actually include the code because SE won't allow the characters in the textbox):
Then there are a series of legitimate .js script tags immediately below. The code in that block is throwing illegal token errors, and appears to be breaking other things in the page. I don't know if it's actually malicious or a corrupted file/db, but I obviously want it gone. Unfortunately I can't find it anywhere in any of the template files and I'm running out of places to look.
Anybody have any ideas on where this block might exist or how I can remove it?