Vulnerability & Exploit Database

Back to search

LNK Code Execution Vulnerability

This module exploits a vulnerability in the handling of Windows Shortcut files (.LNK) that contain a dynamic icon, loaded from a malicious DLL. This vulnerability is a variant of MS15-020 (CVE-2015-0096). The created LNK file is similar except an additional SpecialFolderDataBlock is included. The folder ID set in this SpecialFolderDataBlock is set to the Control Panel. This is enough to bypass the CPL whitelist. This bypass can be used to trick Windows into loading an arbitrary DLL file. If no PATH is specified, the module will use drive letters D through Z so the files may be placed in the root path of a drive such as a shared VM folder or USB drive.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/windows/fileformat/cve_2017_8464_lnk_rce

Authors

  • Uncredited
  • Yorick Koster
  • Spencer McIntyre

References

Targets

  • Automatic
  • Windows x64
  • Windows x86

Platforms

  • windows

Architectures

  • x86
  • x64
  • _any_
  • x64
  • x86

Reliability

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

Related Vulnerabilities

Related Modules