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


0.0
high

Snyk CVSS

    Attack Complexity High
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.79% (82nd percentile)
Expand this section
NVD
9.8 critical

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 ID SNYK-DOTNET-MADSKRISTENSENASPNETCOREMINIBLOG-174341
  • published 16 Apr 2019
  • disclosed 16 Apr 2019
  • credit Rob

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.