Remote Code Execution Affecting madskristensen.aspnetcore.miniblog Open this link in a new tab package, versions [0,]


0.0
high
  • Attack Complexity

    High

  • Confidentiality

    High

  • Integrity

    High

  • Availability

    High

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.