Rapid7 Vulnerability & Exploit Database

SMBv3 Compression Buffer Overflow

Back to Search

SMBv3 Compression Buffer Overflow

Disclosed
03/13/2020
Created
05/21/2021

Description

A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to execute code on a vulnerable server. This remove exploit implementation leverages this flaw to execute code in the context of the kernel, finally yielding a session as NT AUTHORITY\SYSTEM in spoolsv.exe. Exploitation can take a few minutes as the necessary data is gathered.

Author(s)

  • hugeh0ge
  • chompie1337
  • Spencer McIntyre

Platform

Windows

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 exploit/windows/smb/cve_2020_0796_smbghost
msf exploit(cve_2020_0796_smbghost) > show targets
    ...targets...
msf exploit(cve_2020_0796_smbghost) > set TARGET < target-id >
msf exploit(cve_2020_0796_smbghost) > show options
    ...show and set options...
msf exploit(cve_2020_0796_smbghost) > exploit

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

;