Rapid7

module

Ultra Mini HTTPD Stack Buffer Overflow

Disclosed
Jul 10, 2013
Created
May 30, 2018

Description

This module exploits a stack based buffer overflow in Ultra Mini HTTPD 1.21,
allowing remote attackers to execute arbitrary code via a long resource name in an HTTP
request. This exploit has to deal with the fact that the application's request handler
thread is terminated after 60 seconds by a "monitor" thread. To do this, it allocates
some RWX memory, copies the payload to it and creates another thread. When done, it
terminates the current thread so that it doesn't crash and hence doesn't bring down
the process with it.

Authors

superkojiman
PsychoSpy [email protected]
OJ Reeves [email protected]

Platform

Windows

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/windows/http/ultraminihttp_bof
msf exploit(ultraminihttp_bof) > show targets
...targets...
msf exploit(ultraminihttp_bof) > set TARGET < target-id >
msf exploit(ultraminihttp_bof) > show options
...show and set options...
msf exploit(ultraminihttp_bof) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.