summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Lightsey <john@04755.net>2020-08-25 16:00:52 -0500
committerTodd Rinaldo <toddr@cpan.org>2020-09-10 16:33:43 -0500
commitc150e7c040454515c5acfb8416f2acdb2c0a2bb4 (patch)
tree0479e160a81e368cccb05a3cb7614cf6c277e861
parentb135fd4a1ca0074e0baef5764530103cc97cc4fe (diff)
downloadperl-c150e7c040454515c5acfb8416f2acdb2c0a2bb4.tar.gz
Make security warnings in the Safe and Opcode modules more direct.
The current "no warranty" text warning against the use of Safe or Opcode for "security purposes" is somewhat ambiguous. These modules are not effective sandboxing mechanisms for evaluating untrusted perl code and should not be used in that manner. Safe and Opcode are, at best, hardening measures that could be used in combination with operating system level sandboxing of the perl interpreter.
-rw-r--r--dist/Safe/Safe.pm9
-rw-r--r--ext/Opcode/Opcode.pm9
2 files changed, 16 insertions, 2 deletions
diff --git a/dist/Safe/Safe.pm b/dist/Safe/Safe.pm
index 1ed1ee9b19..38791ce9ad 100644
--- a/dist/Safe/Safe.pm
+++ b/dist/Safe/Safe.pm
@@ -3,7 +3,7 @@ package Safe;
use 5.003_11;
use Scalar::Util qw(reftype refaddr);
-$Safe::VERSION = "2.42";
+$Safe::VERSION = "2.43";
# *** Don't declare any lexicals above this point ***
#
@@ -543,6 +543,13 @@ outside the compartment) placed into the compartment. For example,
=head1 WARNING
+The Safe module does not implement an effective sandbox for
+evaluating untrusted code with the perl interpreter.
+
+Bugs in the perl interpreter that could be abused to bypass
+Safe restrictions are not treated as vulnerabilities. See
+L<perlsecpolicy> for additional information.
+
The authors make B<no warranty>, implied or otherwise, about the
suitability of this software for safety or security purposes.
diff --git a/ext/Opcode/Opcode.pm b/ext/Opcode/Opcode.pm
index fd9d892370..9351c3ba20 100644
--- a/ext/Opcode/Opcode.pm
+++ b/ext/Opcode/Opcode.pm
@@ -6,7 +6,7 @@ use strict;
our($VERSION, @ISA, @EXPORT_OK);
-$VERSION = "1.47";
+$VERSION = "1.48";
use Carp;
use Exporter ();
@@ -117,6 +117,13 @@ Safe modules for more typical uses.
=head1 WARNING
+The Opcode module does not implement an effective sandbox for
+evaluating untrusted code with the perl interpreter.
+
+Bugs in the perl interpreter that could be abused to bypass
+Opcode restrictions are not treated as vulnerabilities. See
+L<perlsecpolicy> for additional information.
+
The authors make B<no warranty>, implied or otherwise, about the
suitability of this software for safety or security purposes.