New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utf8_heavy.pl, tainted and insecure dependency #7745
Comments
From adelton@fi.muni.czCreated by adelton@fi.muni.czHello, I have a fairly complex set of module that I try to write tests for. Insecure dependency in require while running with -T switch at The line 182 in utf8_heavy.pl is the line where $list = do $file; is called. Okay, I never called utf8_heavy.pl myself, but digging Nevertheless, I changed the utf8_heavy.pl as follows Inline Patch--- /usr/lib/perl5/5.8.5/utf8_heavy.pl 2004-10-12 18:54:58.000000000 +0200
+++ utf8_heavy.pl 2005-01-11 08:47:52.498218355 +0100
@@ -148,9 +148,17 @@
## The user-level way to access ToDigit() and ToFold()
## is to use Unicode::UCD.
##
+
+ use Scalar::Util;
+ if (Scalar::Util::tainted($type)) {
+ print "Type [$type] is tainted\n";
+ } else {
+ print "Type [$type] is not tainted\n";
+ }
if ($type =~ /^To(Digit|Fold|Lower|Title|Upper)$/)
{
$file = "unicore/To/$1.pl";
+ print "File [$file] is tainted\n" if Scalar::Util::tainted($file);
## would like to test to see if $file actually exists....
last GETFILE;
}
@@ -179,6 +187,7 @@
return $Cache{$class, $file};
}
+ print "File [$file] is tainted\n" if Scalar::Util::tainted($file);
$list = do $file;
}
Type [ToLower] is not tainted So I believe that this is a bug in Perl's tainting mechanism -- if ( the makes the problem disappear. Maybe this bug report will help someone remember what could be wrong http://ipv6.he.net/forum/read.php?f=1&i=845&t=845 and it seems that the problem only happens in very rare conditions Sincerely, Jan Pazdziora Perl Info
|
From @iabynRegarding your taint bug report from 2005. Sorry, no-one's replied to it Do still you have the ability to reproduce this issue, either with 5.8.5 if ( To |
The RT System itself - Status changed from 'new' to 'open' |
From adelton@fi.muni.czOn Thu, Mar 25, 2010 at 01:36:58PM -0700, Dave Mitchell via RT wrote:
Dave, I'm sorry but I no longer have access to the reproducer (I no longer Looking at my perlbug report, I should have put more information about Sorry, -- Jan Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/ |
From @iabynOn Fri, Mar 26, 2010 at 10:55:41AM +0100, Jan Pazdziora wrote:
Ah well, not to worry. I'll mark the ticket as stalled. -- |
@iabyn - Status changed from 'open' to 'stalled' |
From @dcollinsnBased on his -V, I'm wondering if there was some interaction between incompatible versions of modules. Perhaps that why make test behaved differently than calling the test program directly. In any event, I can't reproduce this anywhere going back to 5.8.5 (or even earlier). Since we have no hope of reproducing, I intend to close this. |
The RT System itself - Status changed from 'stalled' to 'open' |
@dcollinsn - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#33755 (status was 'rejected')
Searchable as RT33755$
The text was updated successfully, but these errors were encountered: