Vulnerability · Published Nov 5, 2021 · Assigned by mitre
CVE-2021-42669
Critical 9.8
In plain English
A critical-severity security flaw in the affected software. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 23.3% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
Official 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 "<?php system($_GET["cmd"]); ?>" the attacker can execute commands on the web server with - /admin/uploads/php-webshell?cmd=id.
Affected products (as reported)
References
- https://www.sourcecodester.com/php/13115/engineers-online-portal-php.html x_refsource_MISC
- https://github.com/TheHackingRabbi/CVE-2021-42669 x_refsource_MISC
- https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671 x_refsource_MISC