Re: Web Server Security
- From: Cyberiade.it Anonymous Remailer <anonymous@xxxxxxxxxxxxxxxxxxxxx>
- Date: 1 Jun 2007 07:39:20 +0200
I highly doubt that a bot would be using
our forms since all the coding is in PHP and not visible to users.
That only leaves the possibility of insecure SMTP.
Form spammers LOVE php forms, since a very high percentage of them in "free
script repositories" are faulty and allow spammers to do what is called
"injection". Perl scripts run a not too distant second. Here is some
relevant information for you :
From a post from about 28.8.2006
The spammer injects the characters '\n' and '\r' (end of line and carriage
return) in an explotiable web form and then adds "bcc:" followed by a
long list of spamees. (If you start getting "bounces" then that is what
has happened). If he is allowed to do this several times, you end up on a
set of email blocklists from which removal is damn near impossible. At
that point your provider either disconnects you or puts a contract out on
you (depending on where you live) or both.
Spammers aren't usually the brightest bulbs in the box, so they like this
technique because it requires virtually no talent and can be run from a
script. Also, about a 10-15% of the forms I see are exploitable, despite
the stellar credentials of some of the webmasters owning then. It's just
that easy to overlook.
Verify that there is a control character filter on you web form or that
the mail handler you use does not accept the "bcc" statement. Either one
will foil his attempts.
To filter:
with php use
"if(egregi("\r",[field]) || egregi("\n",[field])) die("No Spam From Me!")
with perl use regular expression matching
with C and C++ use regexec and regcomp.
to trap these characters.
The author failed to mention that sendmail and postfix happily accept bcc:
statements.
Also, from another post:
Some more techical information is on Damon Kohler's wiki at
http://www.securephpwiki.com/index.php/Email_Injection. Even if you
are not too technical, it is worth a read to see what you are up against.
.
- References:
- Web server security
- From: Shidony
- Web server security
- Prev by Date: Web server security
- Next by Date: Re: Web server security
- Previous by thread: Web server security
- Next by thread: Re: Web server security
- Index(es):
Relevant Pages
|