--- embedaddon/lighttpd/tests/core-request.t 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/tests/core-request.t 2014/06/15 20:20:05 1.1.1.2 @@ -8,7 +8,7 @@ BEGIN { use strict; use IO::Socket; -use Test::More tests => 36; +use Test::More tests => 38; use LightyTest; my $tf = LightyTest->new(); @@ -197,6 +197,22 @@ EOF ); $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ]; ok($tf->handle_http($t) == 0, 'broken IPv4 address - too short'); + +$t->{REQUEST} = ( <{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ]; +ok($tf->handle_http($t) == 0, 'IPv6 address + SQL injection'); + +$t->{REQUEST} = ( <{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 400 } ]; +ok($tf->handle_http($t) == 0, 'IPv6 address + path traversal');