{"id":"CVE-2021-42669","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2021-11-05T12:36:43.000Z","updatedAt":"2024-08-04T03:38:49.315Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://www.sourcecodester.com/php/13115/engineers-online-portal-php.html","https://github.com/TheHackingRabbi/CVE-2021-42669","https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:04.473Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/42xxx/CVE-2021-42669.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-42669","state":"PUBLISHED","datePublished":"2021-11-05T12:36:43.000Z","dateUpdated":"2024-08-04T03:38:49.315Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2021-10-18T00:00:00.000Z"},"containers":{"cna":{"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"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"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2021-11-24T19:38:58.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"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":[{"title":"CVE Program Container","references":[{"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","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T03:38:49.315Z"}}]}}}