Don Marti

Sun, 17 Apr 2005

Dude, use modules

Seth writes about an ancient CGI vulnerability.

It might have Hack Value to write your own query string parser or your own code to invoke standard utilities, but, really, better to just use a module.

use strict;
use Mail::Sendmail;

...

sendmail ( 'From'    => $FROM,
           'To'      => $to,
           'smtp'    => $SMTP_SERVER,
           'Subject' => $what,
           'Message' => $text
         ) or die $Mail::Sendmail::error;

Here's the Mail::Sendmail FAQ.

--
Don Marti <dmarti@zgp.org>

This banner is hidden from standards-compliant browsers. If you can see the banner, consider switching browsers.

photodropper DirectBuy Yahoo TMDA Lexmark Linux news from LinuxWorld.com Scientology AdTI SSH SCO CP2102 Linux Herbalife Jerry Reynolds VX30 PowerPoint Matt Harrison nutzwerk intelligent design Eaton Powerware