diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-09 11:55:33 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-09 11:55:33 +0000 |
commit | 26a2d34763c26e0d624a4f2227cb0f7da1812632 (patch) | |
tree | a330ff4b86dd9f6e2bd5889cc1785bbcb0c90980 /pod/perlrun.pod | |
parent | a179871ba0a4416951234c6b0cf01884909b8e1f (diff) | |
download | perl-26a2d34763c26e0d624a4f2227cb0f7da1812632.tar.gz |
Warn more about disclosing the hash seed, from Scott A. Crosby.
p4raw-id: //depot/perl@21139
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r-- | pod/perlrun.pod | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 7f32e94c1b..81d47495b7 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -1139,16 +1139,24 @@ the pseudorandom seed supplied by the operating system and libraries. This means that each different run of Perl will have a different ordering of the results of keys(), values(), and each(). -See L<perlsec/"Algorithmic Complexity Attacks"> for more information, -and also L</PERL_HASH_SEED_DEBUG>. +B<Please note that the hash seed is sensitive information>. Hashes are +randomized to protect against local and remote attacks against Perl +code. By manually setting a seed this protection may be partially or +completely lost. + +See L<perlsec/"Algorithmic Complexity Attacks"> and +L</PERL_HASH_SEED_DEBUG> for more information. =item PERL_HASH_SEED_DEBUG (Since Perl 5.8.1.) Set to one to display (to STDERR) the value of -the hash seed at the beginning of execution. B<Note that the hash -seed is sensitive information>: by knowing it one can craft a -denial-of-service attack against Perl code, even remotely, see -L<perlsec/"Algorithmic Complexity Attacks"> for more information. +the hash seed at the beginning of execution. This, combined with +L</PERL_HASH_SEED> is intended to aid in debugging nondeterministic +behavior caused by hash randomization. + +B<Note that the hash seed is sensitive information>: by knowing it one +can craft a denial-of-service attack against Perl code, even remotely, +see L<perlsec/"Algorithmic Complexity Attacks"> for more information. B<Do not disclose the hash seed> to people who don't need to know it. See also hash_seed() of L<Hash::Util>. |