Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!
CVE-2021-46079 — CVE-2021-46079 - An Unrestricted File Upload vulnerability exists in Sourcecodester Vehicle Service Management System 1.0. A remote attacker can upload malicious files leading to Html Injection. | Kitploit
CVE-2021-46079 - An Unrestricted File Upload vulnerability exists in Sourcecodester Vehicle Service Management System 1.0. A remote attacker can upload malicious files leading to Html Injection.
An Unrestricted File Upload vulnerability exists in Sourcecodester Vehicle Service Management System 1.0. A remote attacker can upload malicious files leading to Html Injection.
1. Vehicle Service Management System - 'MyAccount' (/admin/?page=user)
Save the above html code For Ex:Html Injection.html
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.
Html Injection is Executed.
Impact:
An attacker can able to upload malicious file in multiple endpoints it leads to Html Injection.
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.