blob: a71f44c0cb417cc0c77d6d7af25f286ead268d00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/perl
use strict;
use warnings;
use Test::More;
use Storable qw(freeze thaw);
plan tests => 1;
# this original worked with the packaged exploit, but that
# triggers virus scanners, so test for the behaviour instead
my $x = bless \(my $y = "mt-config.cgi"), "CGITempFile";
my $frozen = freeze($x);
{
my $warnings = '';
local $SIG{__WARN__} = sub { $warnings .= "@_" };
thaw($frozen);
like($warnings, qr/SECURITY: Movable-Type CVE-2015-1592 Storable metasploit attack/,
'Detect CVE-2015-1592');
}
|