Analysis:
During the analysis, it was observed that the application allowed users to upload malicious files to the server. Please refer to the below-provided evidence and proof of concept.
Impact:
An attacker can upload a malicious file that can lead to Remote Code Execution and thereby can take over the entire web application. The consequences of unrestricted file upload can vary, including complete system takeover, an overloaded file system or database, forwarding attacks to back-end systems, client-side attacks, or simple defacement.
Recommendation:
· It is recommended to restrict file types accepted for upload.
· Validate the file extension and Content-Type of the file on the server side.
· Only allow certain files to be uploaded.
· Use a whitelist approach instead of a blacklist.
· Change the permissions on the upload folder so the files within it are not executable. If possible, rename the files that are uploaded.
Comments
Post a Comment