Paper/Archive/CVE-2021-42669

CVE-2021-42669

mitre — A file upload vulnerability exists in Sourcecodester Engineers Online Portal in PHP via dashboard_teacher.php, which allows changing the…

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
n/an/a–CNA

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

refsourcecodester.com/php/13115/engineers-online-portal-php.htmlrefgithub.com/TheHackingRabbi/CVE-2021-42669refgithub.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671