The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-5047

CVE-2024-5047: Student Management System RCE Vulnerability

CVE-2024-5047 is a critical remote code execution vulnerability in Student Management System 1.0 caused by unrestricted file upload. This article covers technical details, affected versions, security impact, and mitigation.

Published: April 8, 2026

CVE-2024-5047 Overview

A critical unrestricted file upload vulnerability has been discovered in SourceCodester Student Management System version 1.0. The vulnerability exists in the /student/controller.php file, where improper validation of the photo parameter allows attackers to upload arbitrary files without proper security controls. This flaw enables remote attackers to potentially upload malicious scripts or executables to the web server, which could lead to remote code execution, complete system compromise, or further exploitation of the affected environment.

Critical Impact

Remote attackers can exploit this unrestricted file upload vulnerability to upload malicious files (such as PHP web shells) through the photo parameter, potentially achieving remote code execution on the target server.

Affected Products

  • SourceCodester Student Management System 1.0
  • kabir-m-alhasan Student Management System 1.0

Discovery Timeline

  • May 17, 2024 - CVE-2024-5047 published to NVD
  • February 10, 2025 - Last updated in NVD database

Technical Details for CVE-2024-5047

Vulnerability Analysis

This vulnerability falls under CWE-434 (Unrestricted Upload of File with Dangerous Type). The Student Management System fails to properly validate file types and content when users upload photos through the controller.php endpoint. Without adequate file type restrictions, content-type validation, or file extension checking, an attacker can upload malicious files disguised as legitimate image uploads.

The attack can be launched remotely over the network without requiring any authentication or user interaction. Once a malicious file is uploaded, the attacker may be able to execute it directly if the upload directory is web-accessible, leading to arbitrary code execution on the server.

Root Cause

The root cause of this vulnerability is the absence of proper file upload validation in the /student/controller.php file. The application does not implement essential security controls such as:

  • File extension whitelist validation
  • MIME type verification
  • File content inspection (magic byte checking)
  • Secure file storage outside the web root
  • Randomized filename generation

Attack Vector

The vulnerability is exploitable over the network (AV:N) with low attack complexity. An attacker can craft a malicious HTTP POST request to the /student/controller.php endpoint, manipulating the photo parameter to upload a file containing executable code (such as a PHP web shell). If successful, the attacker can then access the uploaded file through a direct URL, executing the malicious payload and gaining control over the server.

The exploit has been publicly disclosed, increasing the risk of widespread exploitation against unpatched systems. Technical details and proof-of-concept information are available through the GitHub Unrestricted Upload Resource.

Detection Methods for CVE-2024-5047

Indicators of Compromise

  • Unexpected files with executable extensions (.php, .phtml, .php5) appearing in upload directories
  • Web shell artifacts or suspicious script files in the photo upload location
  • Unusual POST requests to /student/controller.php with non-image file content
  • Anomalous outbound network connections originating from the web server

Detection Strategies

  • Monitor HTTP POST requests to /student/controller.php for suspicious file uploads containing non-image MIME types
  • Implement file integrity monitoring on web-accessible directories to detect unauthorized file creation
  • Review web server access logs for direct access to recently uploaded files with executable extensions
  • Deploy web application firewall (WAF) rules to block uploads of executable file types

Monitoring Recommendations

  • Enable detailed logging on the Student Management System application and web server
  • Configure alerts for file creation events in upload directories that don't match expected image formats
  • Implement behavioral analysis to detect web shell activity patterns such as command execution or file system enumeration
  • Regularly audit upload directories for files that don't conform to expected image file signatures

How to Mitigate CVE-2024-5047

Immediate Actions Required

  • Restrict or disable the photo upload functionality until a patch is applied
  • Implement strict file extension whitelisting to only allow image formats (.jpg, .jpeg, .png, .gif)
  • Configure the web server to prevent execution of scripts in upload directories
  • Review and remove any suspicious files from upload directories immediately

Patch Information

No official vendor patch has been released at the time of this writing. Organizations using SourceCodester Student Management System 1.0 should monitor the VulDB Advisory #264744 for updates and consider implementing the workarounds below to reduce exposure.

Workarounds

  • Add server-side validation to check file MIME types and magic bytes before accepting uploads
  • Store uploaded files outside the web root directory to prevent direct execution
  • Rename uploaded files using random, non-guessable filenames without preserving original extensions
  • Configure .htaccess or web server settings to deny script execution in upload directories
  • Consider implementing a content delivery network (CDN) or separate storage server for uploaded media
bash
# Apache configuration to prevent script execution in upload directory
# Add to .htaccess in the upload directory

# Disable PHP execution
<FilesMatch "\.ph(p[2-7]?|t|tml|ar|ps)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Only allow specific image file types
<FilesMatch "^.*\.(jpg|jpeg|png|gif)$">
    Order Allow,Deny
    Allow from all
</FilesMatch>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechKabir M Alhasan Student Management System

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.25%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-434
  • Technical References
  • GitHub Unrestricted Upload Resource

  • VulDB Advisory #264744

  • VulDB #264744

  • VulDB Submission #335633
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English