line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::XSSLint::Result; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
93
|
|
4
|
2
|
|
|
2
|
|
10
|
use vars qw($VERSION); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
115
|
|
5
|
|
|
|
|
|
|
$VERSION = 0.01; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
11
|
use URI; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
492
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
3
|
|
|
3
|
0
|
25
|
my($class, %p) = @_; |
11
|
3
|
|
|
|
|
112
|
bless {%p}, $class; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub action { |
15
|
6
|
|
|
6
|
0
|
10
|
my $self = shift; |
16
|
6
|
|
|
|
|
27
|
return $self->{form}->action; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub names { |
20
|
6
|
|
|
6
|
0
|
1025
|
my $self = shift; |
21
|
6
|
|
|
|
|
8
|
return @{$self->{names}}; |
|
6
|
|
|
|
|
43
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub vulnerable { |
25
|
7
|
|
|
7
|
0
|
1614
|
my $self = shift; |
26
|
7
|
|
|
|
|
10
|
return scalar @{$self->{names}} > 0; |
|
7
|
|
|
|
|
62
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub example { |
30
|
4
|
|
|
4
|
0
|
10
|
my $self = shift; |
31
|
4
|
50
|
|
|
|
8
|
return undef unless $self->vulnerable; |
32
|
4
|
|
|
|
|
12
|
my $uri = URI->new($self->action); |
33
|
4
|
|
|
|
|
364
|
$uri->query_form(map { $_ => 'test' } $self->names); |
|
8
|
|
|
|
|
36
|
|
34
|
4
|
|
|
|
|
771
|
return $uri; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
__END__ |