Subject: | bin/makerandom should not load modules from unsafe dir |
This is very similar to the issue reported to Crypt::Primes via https://rt.cpan.org/Ticket/Display.html?id=128058
bin/makerandom is going to be install, and should simply trust Perl default @INC locations
Note: once installed the Perl shebang is going to be adjusted to use the Perl used during the installation
so the module will be reachable by default.
We should not preserve the actual customized shebang, or any other module could be loaded
depending from where/who run the script bin/makerandom
This is a security fix.
view https://github.com/atoomic/Crypt-Random/pull/1
Suggested patch:
diff --git a/bin/makerandom b/bin/makerandom
index 29b21c6..cfe5485 100755
--- a/bin/makerandom
+++ b/bin/makerandom
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -sI../lib -Ilib/
+#!/usr/bin/perl
##
## makerandom - interface to crypt::random
##