My-Blog-layui Unrestricted File Upload Vulnerability in Admin Upload Function

Vulnerability

A critical arbitrary file upload vulnerability has been identified in My-Blog-layui version 1.0. The issue resides in the Upload function of the AdminController, specifically within the /admin/upload/authorImg/ interface. This vulnerability allows for unrestricted file uploads, as the interface does not impose any limitations on the types of files that can be uploaded. The vulnerability can be exploited remotely, and the exploit has been publicly disclosed.

Impact

Exploitation of this vulnerability allows for arbitrary file upload, which could lead to the execution of uploaded files if the application processes them in a certain way.

Reproduction

To reproduce this vulnerability, send a POST request to the /admin/upload/authorImg/ endpoint. The request must include a file in the multipart/form-data format. The uploaded file can be a JSP file containing a payload, such as a command to execute an application like the calculator.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.6
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.