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…

published November 5, 2021

CVSS
—
EPSS
23%
Percentile
97.8
In the wild
Unconfirmed
What it is

⚠️ A sneaky file upload vulnerability lurks in the Sourcecodester Engineers Online Portal! By simply swapping an avatar, an attacker can slip in a PHP webshell that takes control of the server. 🔥 Imagine a restaurant where anyone can change the menu item of their choice without checks. Instead of a delicious dish, someone could order a side of chaos with a spicy PHP webshell! 🍽️ This vulnerability could allow an attacker to execute commands on the web server, potentially leading to devastating consequences like unauthorized access to sensitive data or even a complete system takeover. It’s like giving a stranger the keys to the server room! 🚪

Put simply

Imagine a restaurant where anyone can change the menu item of their choice without checks. Instead of a delicious dish, someone could order a side of chaos with a spicy PHP webshell! 🍽️ The vulnerability is present in the file upload feature of the dashboard_teacher.php, where an attacker can upload a malicious PHP file disguised as an avatar. This file is stored in the publicly accessible /admin/uploads/ directory, making it easily executable.

What to do

This vulnerability could allow an attacker to execute commands on the web server, potentially leading to devastating consequences like unauthorized access to sensitive data or even a complete system takeover. It’s like giving a stranger the keys to the server room! 🚪 To mitigate this risk, ensure that uploaded files are strictly validated. Implement checks for file types and consider storing uploads in a non-web-accessible directory. Review and patch the application to restrict file uploads to authorized types only. This is fixable! Follow these steps, and you’ll be a hero protecting your application in no time! 🦸‍♂️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.23270 · 97.8th percentile
Published
2021-11-05T12:36Z
EPSS history
Timeline
  • 05 NOV 12:36Z
    A file upload vulnerability exists in Sourcecodester Engineers Online Portal in PHP via dashboard_teacher.php, which allows changing the avatar through…
    cvelistv5