Sourcecodester Engineers Online Portal
A file upload issue exists, allowing attackers to change the avatar through `teacher avatar.php` in `dashboard teacher.php`. Uploaded files are stored in the `/admin/uploads/` directory and are accessible to all users. An attacker can upload a PHP webshell containing `<?php system($ GET["cmd"]); ?>` and execute commands on the web server by accessing the uploaded file, for example, `/admin/uploads/php-webshell?cmd=id`. This allows for command execution with potentially elevated privileges.