CVE-2021-42669 File upload in n/a

Critical 9.8 Published Updated

Attackers can upload malicious PHP files via the avatar feature to execute arbitrary commands on the web server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-42669?

CVE-2021-42669 is a critical vulnerability in n/a, published on 5 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-434

Which versions are affected by CVE-2021-42669?

It affects 1 product.

Products include Engineers Online Portal Project Engineers Online Portal.

How do I fix CVE-2021-42669?

No fix has been published for CVE-2021-42669 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-42669 being exploited?

There is no known exploitation of CVE-2021-42669 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-h6f4-pv83-7533.

Is CVE-2021-42669 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free