module

Timbuktu PlughNTCommand Named Pipe Buffer Overflow

Disclosed
06/25/2009
Created
05/30/2018

Description

This module exploits a stack based buffer overflow in Timbuktu Pro version
in a pretty novel way.

This exploit requires two connections. The first connection is used to leak stack data
using the buffer overflow to overwrite the nNumberOfBytesToWrite argument. By supplying
a large value for this argument it is possible to cause Timbuktu to reply to the initial
request with leaked stack data. Using this data allows for reliable exploitation of the
buffer overflow vulnerability.

Props to Infamous41d for helping in finding this exploitation path.

The second connection utilizes the data from the data leak to accurately exploit
the stack based buffer overflow vulnerability.

TODO:
hdm suggested using meterpreter's migration capability and restarting the process
for multishot exploitation.

Author

bannedit

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/smb/timbuktu_plughntcommand_bof
    msf /(f) > show actions
        ...actions...
    msf /(f) > set ACTION < action-name >
    msf /(f) > show options
        ...show and set options...
    msf /(f) > run
  
Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.