{"id":"CVE-2021-42669","published":"2021-11-05T12:36:43Z","modified":"2024-08-04T03:38:49Z","title":"A file upload vulnerability exists in Sourcecodester Engineers Online Portal in PHP via dashboard_teacher.php, which…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.2327,"percentile":0.97828,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.sourcecodester.com/php/13115/engineers-online-portal-php.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/TheHackingRabbi/CVE-2021-42669","tags":["x_refsource_MISC"]},{"url":"https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671","tags":["x_refsource_MISC"]}],"priority":{"score":24.6,"factors":[{"name":"EPSS percentile","points":19.57},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2021-11-03","earliestUrl":"https://github.com/0xDeku/CVE-2021-42669","repos":[{"name":"0xDeku/CVE-2021-42669","url":"https://github.com/0xDeku/CVE-2021-42669","stars":2,"created":"2021-11-03"}]},"first":{"date":"2021-11-03","source":"PoC-in-GitHub","url":"https://github.com/0xDeku/CVE-2021-42669"},"provenance":"source"},"summary":{"text":"The Sourcecodester Engineers Online Portal (PHP) contains a file upload flaw in its teacher avatar functionality, reached through dashboard_teacher.php and teacher_avatar.php. An attacker who can upload an avatar can place a PHP webshell in the publicly accessible /admin/uploads/ directory and then run arbitrary operating system commands on the web server by requesting it with a cmd parameter.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:40:22Z"},"euvd":{"id":"EUVD-2021-29630","exploited":false,"provenance":"source"}}