Skip to content
Path traversal Advisory Intermediate CVE-2018-8416

.NET Core Tampering Vulnerability (CVE-2018-8416)

A tampering flaw existed in .NET Core's handling of specially crafted files, allowing an attacker to write arbitrary files and directories to certain locations on a vulnerable system. The attacker's control over where those files landed was limited, and exploitation required sending a crafted file to the target.

Snyk Security Research Team Follow

Originally disclosed on Microsoft

Description

A tampering vulnerability exists when .NET Core improperly handles specially crafted files. An attacker who successfully exploited this vulnerability could write arbitrary files and directories to certain locations on a vulnerable system. However, an attacker would have limited control over the destination of the files and directories. To exploit the vulnerability, an attacker must send a specially crafted file to a vulnerable system. The security update fixes the vulnerability by ensuring .NET Core properly handles files.

.NET Core

.NET Core

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Snyk Security Research Team. 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, .NET Core did not properly validate or constrain the paths derived from crafted file contents, so file writes could escape their intended location.

Impact

An attacker could write arbitrary files and directories to certain locations, but with limited control over the destination.

What the attacker needed

Ability to send a crafted file to the system

The fix

The vulnerability was fixed by a security update that ensures .NET Core properly handles files.

How it was found

  1. Send a specially crafted file to a vulnerable 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.

Some software unpacks or processes files it receives, and it is supposed to keep them inside a safe folder. Here, a maliciously built file could make the software write files into places it should not, though the attacker could not fully choose where. The danger is that an attacker who can plant files may be able to change how the system behaves.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by Snyk Security Research Team

View all

1 more disclosed report, 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.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.