LNK Remote Code Execution Vulnerability (CVE-2018-8346)
A flaw in how Windows processes shortcut (.LNK) files allowed a malicious shortcut, placed on a removable drive or remote share, to run an attacker-chosen binary when the location was opened in Explorer or another parser. An attacker who succeeded could run code with the same rights as the logged-in user.
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists in Microsoft Windows that could allow remote code execution if a .LNK file is processed. An attacker who successfully exploited this vulnerability could gain the same user rights as the local user. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights. The attacker could present to the user a removable drive, or remote share, that contains a malicious .LNK file and an associated malicious binary. When the user opens this drive(or remote share) in Windows Explorer, or any other application that parses the .LNK file, the malicious binary will execute code of the attacker’s choice, on the target system. The security update addresses the vulnerability by correcting the processing of shortcut LNK references.
Microsoft Windows
Microsoft Windows
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, Windows did not properly validate or restrict the binary referenced by a shortcut file when parsing LNK references, allowing a linked program to be launched automatically.
Impact
An attacker could run code of their choice with the victim's user rights, so accounts with fewer rights would be less affected than administrative ones.
What the attacker needed
Victim opens a drive or share; attacker supplies a malicious .LNK and binary
How it was found
- The attacker prepares a removable drive or remote share containing a malicious .LNK file and an associated malicious binary.
- The attacker presents that drive or share to the victim.
- The victim opens the drive or share in Windows Explorer, or in any application that parses the .LNK file.
- The malicious binary runs on the target system with the victim's user rights.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A shortcut file (the little arrow icons on Windows) is meant to point at a program. Here, Windows could be tricked into running a program the attacker supplied just by looking at a folder containing a booby-trapped shortcut. The attacker gains whatever powers the person who opened the folder has, so an administrator account would be worse.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.