# send password:
    $ENV{"PATH"} = "";
    open (MAIL, "| /usr/lib/sendmail $email"); 

http://www.perl.org/troubleshooting_CGI.html
--------------------------------------------------------

Is the script complaining about insecure dependencies? 

If your script complains about insecure dependencies, you
are probably using the -T switch to turn on taint mode.

Any data originating from outside of the program (i.e. the enviroment) is considered tainted.

Environment variables such as PATH and LD_LIBRARY_PATH are particularly troublesome.

You have to set these to a safe value or unset them completely, as I recommend.

You should be using absolute paths anyway.

If taint checking complains about something else, make sure that you have untainted the data.

See the perlsec man page for details. 

-ans


In reply to Re: why is this tainted? by aspitzer
in thread why is this tainted? by michellem

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.