Loading...
 
Skip to main content

Development


hacker inserted iframe into tiki header; how to remove

Someone has inserted this iframe code into the header of every tiki page; any ideas how to remove it? my site is www.sohotoolkit.com.Question

WARNING: don't visit the page as it could give you a trojan/worm/virus.

I'm hosted at bluehost; questionable security!

You shouold update your Tiki site to the latest release (Tiki 1.9.10.1). One or more of your current files has been vandalized. Using FTP or other file transfer/copy method, overwrite all the current files of the Tiki site. Make sure there are no files in the Tiki file structure that don't belong there, by comparing the file hierarchy of your site to the files of the fresh Tiki archive that you download to install. Look in particular at directories that have chmod 777 permission, but check everything.

If you don't want to check directory-by-directory, completely delete the current Tiki file structure, first making backup copies of only the files that you uploaded to the site as site-specific content, such as images for wiki pages (img/wiki_up) and, if you stored gallery images and files in the file directory rather than the database, the files in those directories as well. (If you keep and then reupload the db/local.php file, your database connection information will already be in place and you won't have to re-enter it.) Then delete everything and upload a fresh Tiki installation where the old one was. Your settings, user info, wiki pages and so on are all stored in the database so you don't have to worry about them (though it's good to make db backups regularly also).

Security especially at shared hosting services is never foolproof. If your Tiki version was not up to date, there are well-known vulnerabilities that are being exploited everyday; this isn't a hypothetical threat. Even if your own site is secure, it seems you may be hit by a script that got in somewhere else on the server.

-- Gary


Thanks for the quick and informative reply. The problem is that I have made some customizations to the site that I don't want to overwrite. I think I will download the entire site into a search of all the files for the I-frame code. Thanks again for the quick help.

I found it; it was in tiki-index.php.
I just had the same thing happen to my site, a bunch of

The vulnerability for this kind of thing is fixed in the more recent versions AFAIK.

-- Gary

Where did you find the hack? I see the iframes in the view source of the displayed tiki-index.php file but can not find a iframe in the code source on the server. Any idea how they are inseting the iframes to the file? Seems to be a iframe per section. I am running 1.9.7 and will be upgrading to 1.9.11 but dont know if that will fix/prevent this type of hack

Like I said; I believe it was in the tiki-index.php file

Try searching the source code of the tiki files for I-frame

Doing a Google search of sohotoolkit.com for "adult" (for example) still turns up quite a few spam redirects at your site. Have the bad files been cleaned out, or does Google have old information?

About the vandalized files ("hacker" isn't actually accurate), one way to check (using ftp client) is for file modification dates that are more recent than the site's last Tiki upgrade, or dates that coincide with the time the trouble starting, if this is known. And even if one vandalized file is found, it doesn't mean the search is over. When this happened to my site, I found several files that had been modified.

-- Gary