Rapid7 Vulnerability & Exploit Database

Microsoft SRV.SYS Mailslot Write Corruption

Back to Search

Microsoft SRV.SYS Mailslot Write Corruption

Disclosed
07/11/2006
Created
05/30/2018

Description

This module triggers a kernel pool corruption bug in SRV.SYS. Each call to the mailslot write function results in a two byte return value being written into the response packet. The code which creates this packet fails to consider these two bytes in the allocation routine, resulting in a slow corruption of the kernel memory pool. These two bytes are almost always set to "\xff\xff" (a short integer with value of -1).

Author(s)

  • hdm <x@hdm.io>

Development

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 auxiliary/dos/windows/smb/ms06_035_mailslot
msf auxiliary(ms06_035_mailslot) > show actions
    ...actions...
msf auxiliary(ms06_035_mailslot) > set ACTION < action-name >
msf auxiliary(ms06_035_mailslot) > show options
    ...show and set options...
msf auxiliary(ms06_035_mailslot) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;