Skip to content
Access control Advisory Advanced CVE-2020-0840

Windows Hard Link Elevation of Privilege Vulnerability (CVE-2020-0840)

Windows improperly handles hard links, allowing an attacker who is logged on to run a crafted application that overwrites a targeted file and gains elevated privileges. The security update corrects how Windows handles hard links.

JeongOh Kyea Follow

Originally disclosed on Microsoft

High 7.8 View original

Description

An elevation of privilege vulnerability exists when Windows improperly handles hard links. An attacker who successfully exploited this vulnerability could overwrite a targeted file leading to an elevated status. To exploit this vulnerability, an attacker would first have to log on to the system. An attacker could then run a specially crafted application that could exploit the vulnerability and take control of an affected system. The security update addresses the vulnerability by correcting how Windows handles hard links.

Microsoft Windows

Microsoft Windows

Issuing CNA

Microsoft

The original report as published on the Microsoft Security Response Center, by JeongOh Kyea(@kkokkokye) of THEORI working with Trend Micro's Zero Day Initiative. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 hard link operations, allowing a logged-on attacker to overwrite a targeted file used by a privileged process.

Impact

An attacker who logs on could run a crafted application to overwrite a targeted file and take control of the affected system.

What the attacker needed

Attacker logs on to the 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 hard link is a way for two file names to point to the same file data on disk. Windows did not properly check who is allowed to create or use hard links, so a logged-in attacker could use a crafted program to overwrite a file that a more privileged process relies on, and thereby gain higher privileges.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by JeongOh Kyea

View all

2 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.