LNK Remote Code Execution Vulnerability (CVE-2020-1299)
A remote code execution vulnerability exists in Microsoft Windows when a .LNK file is processed. An attacker could present a malicious .LNK file and associated binary on a removable drive or remote share, and when the user opens it in Windows Explorer, the malicious binary executes code of the attacker's choice.
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.
Windows Shell
Windows Shell
Microsoft
Microsoft
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 incorrect processing of shortcut LNK references in Windows Shell, allowing a malicious .LNK file to trigger execution of an associated binary.
Impact
An attacker could execute code of their choice with the same user rights as the local user; users with fewer rights could be less impacted.
What the attacker needed
User opens a malicious drive or share; attacker can place files on that drive or share
How it was found
- Attacker places a malicious .LNK file and an associated malicious binary on a removable drive or remote share.
- Attacker presents the drive or share to the user.
- User opens the drive or share in Windows Explorer or another application that parses the .LNK file.
- The malicious binary executes code of the attacker's choice on the target system.
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 .LNK file is a Windows shortcut. This bug meant that simply opening a folder containing a specially crafted shortcut could run an attacker's program. The attacker had to trick the user into opening a drive or shared folder that held the malicious shortcut and program.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.