SecurityContext

CVE-2021-42669: Sourcecodester Engineers Online Portal - Unrestricted File Upload

  • Cve: CVE-2021-42669
  • Name: Sourcecodester Engineers Online Portal - Unrestricted File Upload
  • 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.
  • Impact: Attackers can execute arbitrary commands on the server, leading to full server compromise.
  • Remediation: Implement strict file validation and restrict upload to non-executable file types, and disable execution of uploaded PHP files.
  • Vulnerability type: unrestricted_file_upload
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to upload a PHP webshell file
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.2327
  • Epss percentile: 0.97815
  • Assignee: [email protected]
  • Published at: 2021-11-05T13:15:09Z
  • Age in days: 1845
  • Modified at: 2026-06-17T04:09:56Z
  • Public exploits total: 3
  • References total: 3
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42669
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-434Unrestricted Upload of File with Dangerous Type

Public exploits

UrlSourceAdded date
https://github.com/TheHackingRabbi/CVE-2021-42669nvd2021-11-05
https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671nvd2021-11-05
https://github.com/0xDeku/CVE-2021-42669poc-in-github2021-11-03

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/TheHackingRabbi/CVE-2021-42669Exploit, Third Party Advisory
https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-42671Exploit, Third Party Advisory
https://www.sourcecodester.com/php/13115/engineers-online-portal-php.htmlProduct, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
engineers_online_portal_project:engineers_online_portalall versionsnonvd/v1/products/engineers_online_portal_project/engineers_online_portal

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 3
  • Public exploit first date: 2021-11-03
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts