Loading...
 
Skip to main content

Architecture / Installation


Wiki has been hacked, page is blank. HELP please!

Hi

Over the last days my wiki has been hacked:

http://wiki.maybites.chQuestion

its doesnt seem to be a serious hack, rather like prank. the reason I know this: A week before this happened I checked my new design on a windows explorer and it didnt display it the way I intended it (like on the firefox), and because I am not fond of microsoft I decided to add a link with "best viewed with firefox" just below my Logo.

However, over the last days two things happened:

first, my wiki cant be viewed anymore with firefox or safari, but only with an explorer (luckily I had one installed otherwise I would have gone berserk).

second, when viewed on explorer, the link is not there anymore (though all the pages are still complete and no defecation has been done otherwise). The link entry was done through the Site Identity Feature.

first of all, what did they do? how can I fix this?

I am still running on wiki 1.9.5 and after this experience I would like to fix my security wholes once and for all. can I update without problem to 1.9.7? the documentationQuestion gives only hints on updates from 1.9.6 to 1.9.7.

I do have strange php errormessages on top of the browser, but I cant make any sense out of them.

and there is a popup windows with message "Handler could not be removed", which only displays with explorer. I was able to track it down to a javascript that is being loaded.

there are a couple of issues at hand, and obviously the most important one would be the browser issue.

please help.

martin

I'm not an expert, but I would say the main thing is to make sure your Tiki installation contains only legitimate Tiki directories and that these contain only legitimate Tiki files. It would probably be good to check other directories of your web site to try to locate any new suspicious files or directories. Maybe you can look at your server logs to find what accesses were made and what actions were done.

You can compare a local copy of the Tiki files with the files now on your server, and delete anything on the server that doesn't match. Of course you may have uploaded images and so on into Tiki directories for image uploads, but you should check these to make sure the files are in fact images and not scripts or executables.

When I look at the page with IE7 or IE6, nothing displayes. In Opera 9 the error message and what looks like executable or archived content displays, different stuff for different kinds of pages (wiki, contact, login). This suggests to me that something is being served, but is corrupted, as if it were gzipped output done badly or something (just guessing — I have no idea if that's possible).

Anyway, I'd verify that the directories and files are legitimate, and delete anything that is suspect (using FTP or shell command line on the server, etc.) The database is probably OK. And upgrade.

-- Gary

Hi Gary

first of all, thanks for your reply

> You can compare a local copy of the Tiki files with the files now on your server, and delete anything on the server that doesn't match. Of course you may have uploaded images and so on into Tiki directories for image uploads, but you should check these to make sure the files are in fact images and not scripts or executables.
>

I checked this. I even deleted all tiki files and replaced them with the version I had on my local machine. same effect.

> When I look at the page with IE7 or IE6, nothing displayes. In Opera 9 the error message and what looks like executable or archived content displays, different stuff for different kinds of pages (wiki, contact, login). This suggests to me that something is being served, but is corrupted, as if it were gzipped output done badly or something (just guessing — I have no idea if that's possible).
>

I cant check it with IE6 or 7 since these arnt supported anymore on macs, but it displays with IE5.2 I still have. It shows the errormessage like in Opera, but the rest isnt scrambled, like you described.

> Anyway, I'd verify that the directories and files are legitimate, and delete anything that is suspect (using FTP or shell command line on the server, etc.) The database is probably OK. And upgrade.
>

I did an upgrade with the upload of 1.9.7. same effect.

It is strange, that it serves "administrable" for IE5.2, "scrambled" for Opera and empty for the other browsers. I have other php applications on this server (blog.maybites.ch or tv.maybites.ch) that work well, though I have a second tikiwiki (opensourceculture.maybites.ch that was based on 1.9.7 with exactly the same effects, even though it was in a different directory and has its own database. and its not that tiki-php-pages do not display properly, the install-script displays allright.

As I mentioned before, the database looks ok, though I have now the feeling, that something has happend with the database, some entry that checks on the browser type.

worst case I create a new instance with a new database and cut and paste the whole site, since I dont trust the database anymore.


???

it works again. I was searching for this missing tmp-folder, and finally found it in the desired path, and after I opened it with my ftp-client, and browsed through it, the errormessages dissapeared, and the browsers display the wiki again properly.

what bothers me is how they got into my database, but my db password was not really solid (or rather stupid simple?).

All I can say, at least it seams, that if the php-script in initlib.php (function.tempnam) cant find the tmp-folder, it can have those strange browser effects as described above.

why they suddenly appeared, and why its gone again is beyond my understanding.

cheers

martin

Finally...

Now I know why it suddenly worked again. my guess above was right. the administrator of my server must have changed the accessrights to the tmp-directory, and he corrected this over the last hour or so.

That's good. Otherwise, it would have been quite a mystery.

-- Gary