-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close the eval "require $module" security hole in Digest->new($algori…
…thm) Also the filter was incomplete.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
#!/usr/bin/env perl | |||
|
|||
# Digest->new() had an exploitable eval | |||
|
|||
use strict; | |||
use warnings; | |||
|
|||
use Test::More tests => 1; | |||
|
|||
use Digest; | |||
|
|||
$LOL::PWNED = 0; | |||
eval { Digest->new(q[MD;5;$LOL::PWNED = 42]) }; | |||
is $LOL::PWNED, 0; |