Says jeffa:
Well, rest assured, there won't be any in a CPAN module, and if there is, it will be there for all to see in plain daylight.
Oh? It used to be that when you ran the Makefile.PL for Memoize, you got the following output:

system("rm -rf /");
(Then there was a three second pause.)
This is only a test. I did not actually try to erase all your files. Sorry if you were alarmed. Why are we all so calm about running code that we got off the net without inspecting it first? I would like to call for greater awareness of this problem. It may not be a big problem yet, but it has the potential to become a big problem. Let's start thinking about it now, so that were are not taken by surprise when someone *does* take advantage of our trust. What can be done about this? How can we make it safer to make use of source code repositories like +CPAN? As an incentive to greater vigilance, the next version of this Makefile.PL REALLY WILL run rm -rf / one time in one thousand. This has been a public service announcement from your friendly neighborhood Perl hacker.
I still think we don't take this seriously enough. It's not enough to say that the trap will "be there for all to see in broad daylight." People don't look at the code before they run it; even when they do, there's no channel for them to warn others.

I think we need to do something about this. Michael Schwern's CPANTS project looked promosing, but then he abandoned it. I'd like to see peer review of CPAN modules and a database of reviews.


In reply to Re: A Fit on NIH by Dominus
in thread A Fit on NIH by footpad

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.