{"containers":{"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2021-11-24T19:38:58.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_MISC"],"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"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-42669","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://www.sourcecodester.com/php/13115/engineers-online-portal-php.html","refsource":"MISC","url":"https://www.sourcecodester.com/php/13115/engineers-online-portal-php.html"},{"name":"https://github.com/TheHackingRabbi/CVE-2021-42669","refsource":"MISC","url":"https://github.com/TheHackingRabbi/CVE-2021-42669"},{"name":"https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671","refsource":"MISC","url":"https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671"}]}}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-04T03:38:49.315Z"},"title":"CVE Program Container","references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"https://www.sourcecodester.com/php/13115/engineers-online-portal-php.html"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/TheHackingRabbi/CVE-2021-42669"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671"}]}]},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2021-42669","datePublished":"2021-11-05T12:36:43.000Z","dateReserved":"2021-10-18T00:00:00.000Z","dateUpdated":"2024-08-04T03:38:49.315Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"}