<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I&#8217;m using Catalyst with FormFu in Apach2 and have switched on the taint mode in Apache config:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal>PerlTaintCheck on<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US>Pages without a form are working without problems.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Now I have a simple contact form created with FormFu which works fine in Catalyst Development Server.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>But in Apache I get the following error:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> [error] Caught exception in MyApp::Controller::Contact-&gt;index &quot;Insecure dependency in require while running with -T switch at /usr/local/share/perl/5.10.1/HTML/FormFu/Util.pm line 371.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> at /usr/local/share/perl/5.10.1/HTML/FormFu/Role/CreateChildren.pm line 136<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> at /usr/local/share/perl/5.10.1/HTML/FormFu/ObjectUtil.pm line 179&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Now I&#8217;ve modified the Util.pm so that I get a more detailed view on the tainted variable:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>&nbsp;&nbsp;&nbsp; if ( !exists $::INC{$class} ) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #Added by myself:<o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US>if (tainted($class))<o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US>{<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-US>die &quot;This require is tainted: &quot; . $class;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US>}<o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US>eval { require $class };&nbsp;&nbsp;&nbsp;&nbsp; #This is line 371<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Now I get the following error message:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[error] Caught exception in MyApp::Controller::Contact-&gt;index &quot;This require is tainted: HTML/FormFu/Element/Select.pm at /usr/local/share/perl/5.10.1/HTML/FormFu/Util.pm line 376.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> at /usr/local/share/perl/5.10.1/HTML/FormFu/ObjectUtil.pm line 179&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>I think, the problem is, that FormFu reads the .yml file and determines which Modules to &#8216;require&#8217;. Due to the require value is read from a file, I get an Insecure Dependency Error.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>One solution is to disable TaintMode, but I think this isn&#8217;t recommended.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>How can I solve this problem?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Sorry for my recently flood of questions but I can&#8217;t find a solution by googling.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks a lot for your help!!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Stefan<o:p></o:p></span></p></div></body></html>