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-30849

CVE-2024-30849: Complete E-commerce Site RCE Vulnerability

CVE-2024-30849 is a remote code execution flaw in Sourcecodester Complete E-Commerce Site v1.0 caused by arbitrary file upload. Attackers can execute malicious code via the filename parameter. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 8, 2026

CVE-2024-30849 Overview

CVE-2024-30849 is an arbitrary file upload vulnerability affecting Sourcecodester Complete E-Commerce Site version 1.0. This vulnerability allows remote attackers to execute arbitrary code by exploiting the filename parameter in the admin/products_photo.php endpoint. The flaw stems from improper input validation (CWE-98), enabling attackers to upload malicious files that can be executed on the server, potentially leading to complete system compromise.

Critical Impact

Remote attackers can achieve arbitrary code execution on vulnerable systems without authentication, potentially leading to full server compromise, data theft, and lateral movement within the network.

Affected Products

  • Donbermoy Complete E-Commerce Site v1.0
  • All installations using the admin/products_photo.php functionality
  • Web servers hosting this e-commerce application

Discovery Timeline

  • 2024-04-05 - CVE-2024-30849 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2024-30849

Vulnerability Analysis

This arbitrary file upload vulnerability exists in the product photo upload functionality of the Complete E-Commerce Site application. The admin/products_photo.php endpoint fails to properly validate the filename parameter, allowing attackers to upload files with arbitrary extensions, including executable PHP scripts. Once uploaded, these malicious files can be accessed directly through the web server, resulting in remote code execution.

The vulnerability is particularly severe because it can be exploited remotely over the network without requiring authentication or user interaction. Successful exploitation grants attackers the ability to execute arbitrary commands with the privileges of the web server process, potentially compromising confidentiality, integrity, and availability of the entire system.

Root Cause

The root cause of this vulnerability is improper file path handling (CWE-98 - Improper Control of Filename for Include/Require Statement in PHP Program). The application fails to implement adequate server-side validation on uploaded files, including:

  • Missing file type/extension whitelisting
  • Absence of content-type verification
  • Lack of filename sanitization
  • No restriction on executable file uploads

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can craft a malicious HTTP request to the admin/products_photo.php endpoint with a specially crafted filename parameter containing a PHP web shell or other malicious payload. The exploitation flow typically involves:

  1. Crafting a malicious file (e.g., PHP web shell) disguised with an allowed extension or exploiting the filename parameter directly
  2. Uploading the malicious file through the vulnerable endpoint
  3. Accessing the uploaded file via direct URL to trigger code execution
  4. Executing arbitrary commands on the compromised server

For detailed technical information about this vulnerability, refer to the GitHub Issue Report.

Detection Methods for CVE-2024-30849

Indicators of Compromise

  • Suspicious file uploads to the product photo directories with .php, .phtml, or other executable extensions
  • Unexpected PHP files appearing in upload directories
  • Web shell signatures in server logs or file system
  • Unusual outbound connections from the web server process
  • Access logs showing direct requests to recently uploaded files in product photo directories

Detection Strategies

  • Implement file integrity monitoring on web application upload directories
  • Monitor HTTP POST requests to admin/products_photo.php for suspicious filename patterns
  • Deploy web application firewalls (WAF) with rules to detect file upload attacks
  • Analyze web server access logs for sequential upload-then-execute patterns
  • Use intrusion detection systems to identify web shell communication patterns

Monitoring Recommendations

  • Enable verbose logging on the web server and application layer
  • Set up alerts for new executable files created in upload directories
  • Monitor for process spawning from web server processes (e.g., www-data or apache spawning shells)
  • Implement network monitoring for C2 communication patterns
  • Regularly audit uploaded files for malicious content

How to Mitigate CVE-2024-30849

Immediate Actions Required

  • Remove or disable the admin/products_photo.php functionality if not critical to operations
  • Implement strict file upload validation including extension whitelisting (allow only image formats like .jpg, .png, .gif)
  • Add server-side content-type verification using magic bytes/file signatures
  • Store uploaded files outside the web root or in a directory with execution disabled
  • Review and remove any suspicious files from upload directories

Patch Information

At the time of this writing, no official vendor patch has been released for this vulnerability. Organizations using Sourcecodester Complete E-Commerce Site v1.0 should implement the workarounds below and consider migrating to a more actively maintained e-commerce platform. Monitor the vendor's repository and security channels for any future patches.

Workarounds

  • Configure the web server to disable PHP execution in upload directories using .htaccess or server configuration
  • Implement application-level file upload validation with strict whitelisting
  • Use a separate domain or subdomain for serving user-uploaded content
  • Deploy a web application firewall with file upload attack signatures
  • Restrict access to the admin panel through IP whitelisting or VPN
bash
# Apache configuration to disable PHP execution in uploads directory
# Add to .htaccess in the uploads folder or server configuration
<Directory "/var/www/html/uploads">
    php_admin_flag engine off
    <FilesMatch "\.php$">
        Deny from all
    </FilesMatch>
</Directory>

# Nginx configuration alternative
location ~* /uploads/.*\.php$ {
    deny all;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDonbermoy Complete E Commerce Site

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.58%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-98
  • Technical References
  • GitHub Issue Report
  • 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