code-projects Computer Book Store File Upload Vulnerability in admin_add.php
Vulnerability
A file upload vulnerability has been identified in code-projects Computer Book Store version 1.0, specifically within the admin_add.php file. This vulnerability allows attackers to upload arbitrary files, which can lead to remote code execution.
Impact
Exploitation of this vulnerability allows for arbitrary file uploads, potentially leading to remote code execution.
Reproduction
To reproduce this vulnerability, upload a file through the image upload feature in the admin_add.php page. The uploaded file can be a PHP script, which, once uploaded, can be executed on the server.
Remediation
It is recommended to validate file extensions using a whitelist, verify the file's MIME type, generate random filenames, restrict execution permissions in the upload directory, and perform resampling on image files.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
