You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 159 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Stop a spammer with .htaccess? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Slackervaara
Captain
Captain


Joined: Sep 13, 2003
Posts: 314


PostPosted: Wed Jun 20, 2007 10:19 am Reply with quoteBack to top

A spammer seems to succeed to download a type of e-mail client named Envio_xD.php to my modules directory and through my site then send out spam. I get a lot of error e-mails to my sites e-mail account that proves that.
I have tried to stop this to happen by add to the .htaccess :

<Files "modules/Envio_xD.php">
Order allow,deny
Allow from myipaddress
</Files>

But it does not seem to work. Grateful för suggestions!
Find all posts by SlackervaaraView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Wed Jun 20, 2007 10:26 am Reply with quoteBack to top

How did he get in?
I don't know off-the-top how the FILES declaration works

I would use mod_rewrite to do the same thing, something like
Code:

RewriteRule ^modules/Evio_xD.php http://127.0.0.1 [R, L]

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Slackervaara
Captain
Captain


Joined: Sep 13, 2003
Posts: 314


PostPosted: Wed Jun 20, 2007 11:51 am Reply with quoteBack to top

The hacker used SpChat to upload the file to my site. I looked in the logs and discovered that. I also found his ip-address, so I have blocked it now in NukeSentinel.

I tried your suggestion with Rewrite, but it gave Internal server error for the entire site, so I could not use it.
Find all posts by SlackervaaraView user's profileSend private message
Slackervaara
Captain
Captain


Joined: Sep 13, 2003
Posts: 314


PostPosted: Wed Jun 20, 2007 6:01 pm Reply with quoteBack to top

I have now solved the problem to access that file. I created a new .htacess file in the directory modules/ . In that .htacess file I have:

<Files "Envio_xD.php">
Order allow,deny
Allow from myipaddress
</Files>

and it works very well and noone else can access that file, if downloaded again to my site.
Find all posts by SlackervaaraView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Wed Jun 20, 2007 8:07 pm Reply with quoteBack to top

I'm guessing Sentinel doesn't protect against this exploit. Is SPChat integrated within the phpNuke/Sentinel environment or not?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Slackervaara
Captain
Captain


Joined: Sep 13, 2003
Posts: 314


PostPosted: Wed Jun 20, 2007 10:10 pm Reply with quoteBack to top

No, Sentinel does not protect from upload of files through SpChat and Sentinel did not protect from the identical behavour by coppermine. However, certain hacking attempts through Spchat have Sentinel protected from, so it seems at least partially integrated into NukeSentinel.


Last edited by Slackervaara on Thu Jun 21, 2007 5:11 am; edited 1 time in total
Find all posts by SlackervaaraView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Thu Jun 21, 2007 5:06 am Reply with quoteBack to top

Cool good to know. I avoid the uploading functions myself Wink

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
athens101
Sergeant
Sergeant


Joined: Jul 11, 2004
Posts: 104

Location: Athens

PostPosted: Thu Jun 21, 2007 3:35 pm Reply with quoteBack to top

I would nix SPChat in favor of flashcat http://www.tufat.com/script2.htm

Granted it's $5 but we have never had a problem with it.
Find all posts by athens101View user's profileSend private messageVisit poster's website
Slackervaara
Captain
Captain


Joined: Sep 13, 2003
Posts: 314


PostPosted: Sat Jun 23, 2007 5:22 pm Reply with quoteBack to top

I wonder, if not this in the .htaccess file would be better? It should also stop hackers from uploading index.php or config.php to the site.

<Limit PUT>
order deny,allow
deny from all
</Limit>

Has anyone tried this?
Find all posts by SlackervaaraView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Sun Jun 24, 2007 4:18 pm Reply with quoteBack to top

I'm guessing that should work, as long as its file uploading through a PUT method rather than a POST method

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.261 Seconds - 160 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::