Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!
CVE-2021-46078 — CVE-2021-46078 - An Unrestricted File Upload vulnerability exists in Sourcecodester Vehicle Service Management System 1.0. A remote attacker can upload malicious files leading to a Stored Cross-Site Scripting vulnerability. | Kitploit
CVE-2021-46078 - An Unrestricted File Upload vulnerability exists in Sourcecodester Vehicle Service Management System 1.0. A remote attacker can upload malicious files leading to a Stored Cross-Site Scripting vulnerability.
An Unrestricted File Upload vulnerability exists in Sourcecodester Vehicle Service Management System 1.0. A remote attacker can upload malicious files leading to a Stored Cross-Site Scripting vulnerability.
1. Vehicle Service Management System - 'MyAccount' (/admin/?page=user)
In Settings Section enter all the required details and browse the html file in Website Cover.
Click on update button.
Open the Website Cover image in new tab.
Malicious javascript code triggered.
Impact:
An attacker can able to upload malicious file in multiple endpoints it leads to Stored Cross-Site Scripting.
Mitigation:
It is recommended to implement the following:
Never accept a filename and its extension directly without having a white-list filter.
If there is no need to have Unicode characters, it is highly recommended to only accept alpha-numeric characters and only one dot as an input for the file name and the extension.
Limit the file size to a maximum value in order to prevent denial of service attacks.
Uploaded directory should not have any "execute" permission.