### [CVE-2021-42669](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42669) ![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brightgreen) ### Description A file upload vulnerability exists in Sourcecodester Engineers Online Portal in PHP via dashboard_teacher.php, which allows changing the avatar through teacher_avatar.php. Once an avatar gets uploaded it is getting uploaded to the /admin/uploads/ directory, and is accessible by all users. By uploading a php webshell containing "" the attacker can execute commands on the web server with - /admin/uploads/php-webshell?cmd=id. ### POC #### Reference - https://github.com/TheHackingRabbi/CVE-2021-42669 - https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671 #### Github - https://github.com/0xDeku/CVE-2021-42669 - https://github.com/2lambda123/CVE-mitre - https://github.com/ARPSyndicate/cvemon - https://github.com/NaInSec/CVE-PoC-in-GitHub - https://github.com/Offensive-Penetration-Security/OPSEC-Hall-of-fame - https://github.com/SYRTI/POC_to_review - https://github.com/TheHackingRabbi/CVE-2021-42669 - https://github.com/WhooAmii/POC_to_review - https://github.com/nomi-sec/PoC-in-GitHub - https://github.com/nu11secur1ty/CVE-mitre - https://github.com/soosmile/POC - https://github.com/trhacknon/Pocingit - https://github.com/zecool/cve