PT-2019-19890 · Madskristensen · Miniblog

Published

2019-06-14

·

Updated

2019-06-19

·

CVE-2019-9842

CVSS v3.1

7.2

High

VectorAV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions madskristensen MiniBlog through 2018-05-18
Description The issue allows remote attackers to execute arbitrary ASPX code via an IMG element with a data: URL. This is because the SaveFilesToDisk function in app code/handlers/PostHandler.cs writes a decoded base64 string to a file without validating the extension.
Recommendations For madskristensen MiniBlog through 2018-05-18, consider validating file extensions before writing decoded base64 strings to disk to prevent arbitrary ASPX code execution. As a temporary workaround, restrict the ability to upload or save files with potentially dangerous extensions.

Exploit

Fix

Unrestricted File Upload

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2019-9842

Affected Products

Miniblog