Remote Code Execution Affecting madskristensen.aspnetcore.miniblog package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.26% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Remote Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-MADSKRISTENSENASPNETCOREMINIBLOG-174341
  • published16 Apr 2019
  • disclosed16 Apr 2019
  • creditRob

Introduced: 16 Apr 2019

CVE-2019-9845  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

MadsKristensen.AspNetCore.Miniblog is a blog engine built on ASP.NET Core 2.0.

Affected versions of this package are vulnerable to Remote Code Execution. Attackers can execute arbitrary code using using Data URLs within image elements. This is due to the way the SaveFilesToDisk function in Controllers/BlogController.cs writes a decoded base64 string to a file without validating the extension first. An attacker can abuse this function to upload malicious ASPX files and achieve remote code execution.

CVSS Scores

version 3.1