Remote Code Execution Affecting madskristensen.aspnetcore.miniblog package, versions [0,]
Snyk CVSS
Threat Intelligence
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
Introduced: 16 Apr 2019
CVE-2019-9845 Open this link in a new tabHow 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.