At this node Copying complete module code into a script monk Daddio wanted to paste module code into a script. merlyn replied pointing to no excuses about not using CGI.pm. This concerns me because at this node A serious security problem with CGI.pm 3.01? it is noted that it seems possible to generate a working CGI.pm with a broken $POST_MAX as this variable is no longer coded in the core CGI.pm code - it is in another module. This opens sites using this to denial of service attacks, and worse the problem appears silent.

With complex modules like CGI.pm 3.0 the core code exists not in one but several interlinked modules. While I am at a loss as to how you can generate the problem described (the fact that there are missing modules should be picked up) I am concerned that cutting and pasting modules may lead to code that works on the surface but has significant security or other issues.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print


In reply to The Dangers of Cutting and Pasting Module Code by tachyon

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.