Subject: | taint mode |
Date: | Wed, 10 Oct 2012 08:46:54 +1100 |
To: | bug-Lingua-Any-Numbers [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With recent debian i386 perl 5.14.2 running
perl -T -MLingua::Any::Numbers
gets an error
An error occurred while including sub modules: Insecure dependency in require while running with -T switch at /usr/share/perl5/Lingua/Any/Numbers.pm line 159.
where I thought perhaps Lingua::Any::Numbers might be used in taint
mode.
The clearest case would be a to_string() with the $lang language
untainted and all of @INC untainted, I think that could load and convert
etc.
Not sure what ought to happen if there's some taintedness. Maybe a
tainted language name or @INC directory name should die to protect
against arbitrary code execution. Or perhaps if the language name looks
valid then it could load but its taintedness propagate onto each
to_string() return ...