You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2008/06/10 21:15:16 UTC

svn commit: r666283 - in /httpd/test/framework/trunk/t: modules/proxy.t security/CVE-2008-2364.t

Author: jim
Date: Tue Jun 10 12:15:16 2008
New Revision: 666283

URL: http://svn.apache.org/viewvc?rev=666283&view=rev
Log:
Pull out CVE-2008-2364 as it's own sep test

Added:
    httpd/test/framework/trunk/t/security/CVE-2008-2364.t
Modified:
    httpd/test/framework/trunk/t/modules/proxy.t

Modified: httpd/test/framework/trunk/t/modules/proxy.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/proxy.t?rev=666283&r1=666282&r2=666283&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/proxy.t (original)
+++ httpd/test/framework/trunk/t/modules/proxy.t Tue Jun 10 12:15:16 2008
@@ -6,7 +6,7 @@
 use Apache::TestUtil;
 use Apache::TestConfig ();
 
-plan tests => 17, need_module 'proxy';
+plan tests => 15, need_module 'proxy';
 
 Apache::TestRequest::module("proxy_http_reverse");
 Apache::TestRequest::user_agent(requests_redirectable => 0);
@@ -35,14 +35,9 @@
     } else {
         skip "skipping tests with httpd <2.1.0" foreach (1..2);
     }
-    $r = GET("/reverse/modules/cgi/nph-interim1.pl");
-    ok t_cmp($r->code, 200, "small number of interim responses - CVE-2008-2364");
-
-    $r = GET("/reverse/modules/cgi/nph-interim2.pl");
-    ok t_cmp($r->code, 502, "large number of interim responses - CVE-2008-2364");
 
 } else {
-    skip "skipping tests without CGI module" foreach (1..10);
+    skip "skipping tests without CGI module" foreach (1..8);
 }
 
 if (have_min_apache_version('2.0.55')) {

Added: httpd/test/framework/trunk/t/security/CVE-2008-2364.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/security/CVE-2008-2364.t?rev=666283&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/security/CVE-2008-2364.t (added)
+++ httpd/test/framework/trunk/t/security/CVE-2008-2364.t Tue Jun 10 12:15:16 2008
@@ -0,0 +1,27 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Apache::Test;
+use Apache::TestRequest;
+use Apache::TestUtil;
+use Apache::TestConfig ();
+
+plan tests => 3, need_module 'proxy';
+
+Apache::TestRequest::module("proxy_http_reverse");
+Apache::TestRequest::user_agent(requests_redirectable => 0);
+
+my $r = GET("/reverse/");
+ok t_cmp($r->code, 200, "reverse proxy to index.html");
+
+if (have_cgi) {
+    $r = GET("/reverse/modules/cgi/nph-interim1.pl");
+    ok t_cmp($r->code, 200, "small number of interim responses - CVE-2008-2364");
+
+    $r = GET("/reverse/modules/cgi/nph-interim2.pl");
+    ok t_cmp($r->code, 502, "large number of interim responses - CVE-2008-2364");
+
+} else {
+    skip "skipping tests without CGI module" foreach (1..2);
+}
+