CVE-2021-42669 A file upload vulnerability exists in Sourcecodester Engineers Online Portal in PHP via dashboard_t…
설명
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 "<?php system($_GET["cmd"]); ?>" the attacker can execute commands on the web server with - /admin/uploads/php-webshell?cmd=id.
파일 업로드 취약점은 PHP의 Sourcecodester Engineers Online Portal에 dashboard_teacher.php를 통해 존재하며, 이는 teacher_avatar.php를 통해 아바타를 변경할 수 있습니다. 아바타가 업로드되면 /admin/uploads/ 디렉토리에 업로드되며 모든 사용자가 액세스 할 수 있습니다. "<?php system($_GET["cmd"]); ?>"를 포함하는 php webshell을 업로드하면 공격자는 웹 서버에서 - /admin/uploads/php-webshell?cmd=id 명령을 실행할 수 있습니다.