BoyunCMS Unrestricted File Upload Vulnerability in Index.php

Vulnerability

A critical arbitrary file upload vulnerability exists in BoyunCMS versions through 1.4.20, specifically within the file /application/user/controller/Index.php. This vulnerability allows authenticated users to upload malicious files, such as web shells, via the /user/Index/upload endpoint. The lack of proper validation in the file upload process enables remote code execution on the server, posing a significant security risk.

Impact

Exploitation of this vulnerability allows for arbitrary file uploads, which can lead to remote code execution on the server.

Reproduction

To reproduce this vulnerability, first register a user account and log in. After logging in, upload a file through the /user/Index/upload endpoint, ensuring that the file type is one that can be executed on the server, such as a PHP file. Once the file is uploaded, it can be accessed and executed, leading to remote code execution.

Added: Jul 7, 2025, 1:19 AM
Updated: Jul 7, 2025, 1:19 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
6.6
remediation
0.0
relevance
0.2
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.