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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:engineers_online_portal_project:engineers_online_portal:-:*:*:*:*:*:*:*

History

29 Nov 2021, 17:13

Type Values Removed Values Added
References (MISC) https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671 - (MISC) https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671 - Exploit, Third Party Advisory

24 Nov 2021, 20:15

Type Values Removed Values Added
References
  • (MISC) https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671 -

09 Nov 2021, 15:10

Type Values Removed Values Added
CPE cpe:2.3:a:engineers_online_portal_project:engineers_online_portal:-:*:*:*:*:*:*:*
CWE CWE-434
References (MISC) https://www.sourcecodester.com/php/13115/engineers-online-portal-php.html - (MISC) https://www.sourcecodester.com/php/13115/engineers-online-portal-php.html - Product, Third Party Advisory
References (MISC) https://github.com/TheHackingRabbi/CVE-2021-42669 - (MISC) https://github.com/TheHackingRabbi/CVE-2021-42669 - Exploit, Third Party Advisory
CVSS v2 : unknown
v3 : unknown
v2 : 10.0
v3 : 9.8

05 Nov 2021, 13:41

Type Values Removed Values Added
New CVE

Information

Published : 2021-11-05 13:15

Updated : 2024-02-04 22:08


NVD link : CVE-2021-42669

Mitre link : CVE-2021-42669

CVE.ORG link : CVE-2021-42669


JSON object : View

Products Affected

engineers_online_portal_project

  • engineers_online_portal
CWE
CWE-434

Unrestricted Upload of File with Dangerous Type