How to Patch CGI::Application::Plugin::ConfigAuto to Run Perl in Taint Mode

Published Date Author: , Posted April 13th, 2012 at 11:12:24am

I had to patch the distribution by adding the following variable into the code:

$Config::Auto::Untaint = 1;

Here is the fix on AWS Linux:

vim /usr/local/share/perl5/CGI/Application/Plugin/ConfigAuto.pm

141 sub cfg {
142 my $self = shift;
143
144 if (!$self->{__CFG}) {
145 require Config::Auto;
146 $Config::Auto::Untaint = 1; (ADD THIS NEW LINE HERE)

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.