Arbitrary file upload in Engineers Online Portal Project
CVE-2021-42669
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.
Vulnerability class: Unrestricted File Upload
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.233, 97.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- 0xDeku/CVE-2021-42669 (2 stars, last pushed 2022-07-12): CVE-2021-42669 - Remote code execution via unrestricted file upload vulnerability in the Engineers online portal system.
- TheHackingRabbi/CVE-2021-42669
Also mentioned in 11 other repositories (2lambda123/CVE-mitre, ARPSyndicate/cvemon, NaInSec/CVE-PoC-in-GitHub, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.sourcecodester.com/php/13115/engineers-online-portal-php.html (Product, Third Party Advisory)
- github.com/TheHackingRabbi/CVE-2021-42669 (Exploit, Third Party Advisory)
- github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671 (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.