forum.coppermine-gallery.net

No Support => General discussion (no support!) => Topic started by: sion3000 on December 21, 2004, 10:28:21 pm

Title: Security threat: "This site is defaced" [NeverEverNoSanity WebWorm]
Post by: sion3000 on December 21, 2004, 10:28:21 pm
Hi

I went onto my coppermine photo gallery today and i was shocked to notice that instead of taking me to the usual front page, it gave me a message  :\'(:
========
This site is defaced!!!

--------------------------------------------------------------------------------

NeverEverNoSanity WebWorm generation 16.

Fatal error: Call to undefined function: breadcrumb() in /files/home/sion3000/Coppermine/index.php on line 118
========

It gets an almost the same error if you click a different link to get into the gallery.

The web site is: www.coolshots.co.uk and you can access the gallery by clicking any of the photos or by clicking Photo Gallery at the top of the page.
Direct link to the gallery is: www.coolshots.co.uk/Coppermine

I have had a quick look in the code but i am not expert not even a novice realy. Everything looks normal. Im currently running version 1.2.1      ???


All ideas and solutions welcome.


Thanks and have a merry xmas.

Sion

[edit GauGau]
Changed this thread's subject from Need some advice with my coppermine gallery please to Security threat: "This site is defaced" [NeverEverNoSanity WebWorm] and made it a sticky.
[/edit]
Title: Re: Need some advice with my coppermine gallery please
Post by: kegobeer on December 21, 2004, 10:31:22 pm
Sounds like this:

http://forum.coppermine-gallery.net/index.php?topic=12803.0

We are aware of this worm.  Please read the above post.
Title: Re: Need some advice with my coppermine gallery please
Post by: kegobeer on December 21, 2004, 10:34:05 pm
You can also read this:

http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=248046
Title: Re: Need some advice with my coppermine gallery please
Post by: Tranz on December 21, 2004, 11:54:02 pm
@sion3000, are you running a phpbb forum older than 2.0.11? I'm just trying to see if there is a pattern.
Title: Re: Need some advice with my coppermine gallery please
Post by: sion3000 on December 22, 2004, 12:00:47 am
Im only running the Coppermine Gallery, no forums or anything else.
At the moment trying to find out what version of php the server uses where my site is hosted.

Thanks
Title: Re: Need some advice with my coppermine gallery please
Post by: Tranz on December 22, 2004, 12:20:26 am
In coppermine, go to Admin Tools / phpinfo. It will tell you your php version.
Title: Re: Need some advice with my coppermine gallery please
Post by: sion3000 on December 22, 2004, 12:35:01 am
Hello again, well ive just been talking to my contacts at my ISP and they are telling me they have been hit by the worm, its managed to get into the main server and overwrite everyones php files, to some extent apatr from phpbb.

So im gona start looking for my back ups!

thanks for everyones help. I think we can prety much call this one solved!

thanks
Hope everyone has a great xmas and a happy new year!
Title: Re: Need some advice with my coppermine gallery please
Post by: gibblesmg on December 22, 2004, 03:55:31 am
To mu surprise i too have had the defaced page replace my photo gallery. I talked to my ISP who indicated that PHP 4.3.8 was safe so I rebuilt my gallery again. Only within 4 hours to have it shut down. I am not a PHP pro. Please help.
Title: Re: Need some advice with my coppermine gallery please
Post by: Aditya Mooley on December 22, 2004, 06:22:28 am
To mu surprise i too have had the defaced page replace my photo gallery. I talked to my ISP who indicated that PHP 4.3.8 was safe so I rebuilt my gallery again. Only within 4 hours to have it shut down. I am not a PHP pro. Please help.
The only solution to this is to upgrade to PHP 4.3.10 or more.
Title: Re: Need some advice with my coppermine gallery please
Post by: Hein Traag on December 22, 2004, 11:38:48 am
Additonal info on the virus itself can be found here.

http://securityresponse.symantec.com/avcenter/venc/data/perl.santy.html
Title: Re: Security threat: "This site is defaced" [NeverEverNoSanity WebWorm]
Post by: djcrash on December 23, 2004, 11:54:22 pm
Understand I help to handle (to settle) from this hold-down problem 3.4.10 entirely PHP? If I write it for administrator so e-mail.
Please, < ask > about answer.
Title: Re: Security threat: "This site is defaced" [NeverEverNoSanity WebWorm]
Post by: Joachim Müller on December 24, 2004, 12:46:10 am
 ???
Title: Re: Security threat: "This site is defaced" [NeverEverNoSanity WebWorm]
Post by: jack on December 26, 2004, 10:57:34 pm
Versions of the worm will deface any site it can find on a server. If someone else on your server has a vulnerable version of phpBB, and other countermeasures are not implemented by your server host, your site will be defaced through no fault of your own.

A newer version of the worm will install an IRC controlled DDOS bot instead (or as well as, I'm not sure yet) of defacing sites.

The worm will try any and every php file it can find even though they are not necessarily phpBB. This will push your bandwidth usage through the roof. To guard against that, you can either edit each and every PHP file to just abort when it gets queried by the worm (easier siad than done) or if your host has mod_rewrite (most apache installations do), put the fllowing into a .htaccess file :-

Code: [Select]
        RewriteEngine On

        RewriteCond  %{QUERY_STRING} &cmd=cd%20/tmp;
        RewriteRule  .* - [F,L]

This will block the three variants that I am aware of. I will update this if needed as time progresses.

Although this worm only affects phpBB, I would not consider php 4.3.8 'safe'. Hosts need to patch the problems in earlier versions or upgrade to 4.3.10