HYBBS2
HYBBS2 copied to clipboard
There is an arbitrary file upload vulnerability in the HYBBS upload plugin function
There is an arbitrary file upload vulnerability in the HYBBS upload plugin function
Vulnerability overview
There is an arbitrary file upload vulnerability in the upload plugin function of the HYBBS management background, which can lead to server permissions.
Vulnerability scope
All versions prior to HYBBS 2.3.3
Vulnerability environment construction
Clone the latest code factory library of HYBBS to the local, and then use phpstudy to build HYBBS.
Vulnerability reproduction steps
Make a malicious zip archive as shown below

Upload malicious zip archives in the management background upload plugin function

After uploading, it prompts that the upload was successful

It can be seen from the log of the folder monitoring software that HYBBS renamed the malicious compressed package and extracted it to the Plugin directory


Vulnerability code analysis
Locate the code of the plugin upload function


HYBBS directly decompresses the compressed package and does not check the content of the compressed package, resulting in an arbitrary file upload vulnerability.
需要管理员才能在后台上传,普通用户没有权限的。