A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-5745

CVE-2024-5745: Bakery Online Ordering System RCE Flaw

CVE-2024-5745 is a critical remote code execution vulnerability in Bakery Online Ordering System 1.0 caused by unrestricted file upload. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 1, 2026

CVE-2024-5745 Overview

A critical unrestricted file upload vulnerability has been identified in itsourcecode Bakery Online Ordering System version 1.0. The vulnerability exists in the file /admin/modules/product/controller.php?action=add where improper validation of the image parameter allows attackers to upload arbitrary files to the server. This weakness (CWE-434: Unrestricted Upload of File with Dangerous Type) can be exploited remotely without authentication, potentially enabling attackers to upload malicious web shells or executable files that lead to remote code execution.

Critical Impact

Attackers can remotely upload arbitrary files including web shells, potentially gaining complete control over the web server and underlying system.

Affected Products

  • Bakery Online Ordering System 1.0
  • itsourcecode Bakery Online Ordering System

Discovery Timeline

  • 2024-06-07 - CVE-2024-5745 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-5745

Vulnerability Analysis

This vulnerability falls under CWE-434 (Unrestricted Upload of File with Dangerous Type), which occurs when the application fails to properly validate uploaded files. The vulnerable endpoint at /admin/modules/product/controller.php?action=add accepts file uploads through the image parameter without implementing adequate security controls to verify the file type, content, or extension.

When processing product image uploads, the application does not enforce restrictions on file types, allowing an attacker to upload files with dangerous extensions such as .php, .phtml, or other executable formats. Once uploaded, these files may be accessible via a predictable URL path, enabling the attacker to execute arbitrary code on the server.

The network-accessible nature of this vulnerability makes it particularly dangerous, as it can be exploited remotely without requiring any authentication or user interaction.

Root Cause

The root cause of this vulnerability is the lack of proper file validation in the product upload functionality. The application fails to implement essential security controls including:

  1. File extension validation against a whitelist of allowed image types
  2. MIME type verification to ensure uploaded content matches expected image formats
  3. Content inspection to detect malicious payloads embedded within uploaded files
  4. Randomization of uploaded file names and storage locations

Attack Vector

The attack can be executed remotely over the network. An attacker can craft a malicious HTTP POST request to the vulnerable endpoint, including a PHP web shell or similar malicious payload disguised as an image file. The exploitation flow typically involves:

  1. The attacker identifies the vulnerable file upload endpoint at /admin/modules/product/controller.php?action=add
  2. A malicious PHP file containing web shell code is prepared
  3. The attacker submits the malicious file through the image parameter
  4. The server accepts and stores the file without proper validation
  5. The attacker accesses the uploaded file via a predictable URL to execute arbitrary commands

Technical details and proof-of-concept information are documented in the GitHub CVE Analysis and the VulDB CTI Report #267414.

Detection Methods for CVE-2024-5745

Indicators of Compromise

  • Unexpected PHP, PHTML, or other executable files appearing in product image upload directories
  • Web server logs showing POST requests to /admin/modules/product/controller.php?action=add followed by requests to unusual file paths
  • Presence of web shell artifacts such as files with obfuscated PHP code or command execution functions like system(), exec(), or passthru()

Detection Strategies

  • Monitor file system changes in upload directories for non-image file types
  • Implement web application firewall (WAF) rules to detect malicious file upload attempts
  • Analyze HTTP traffic for POST requests containing suspicious file extensions or PHP code signatures
  • Review server access logs for sequential patterns of file upload followed by direct file access

Monitoring Recommendations

  • Enable file integrity monitoring on web application directories to detect unauthorized file modifications
  • Configure alerts for new executable files created in upload or temporary directories
  • Implement logging for all file upload operations including file names, types, and source IP addresses
  • Deploy endpoint detection and response (EDR) solutions to monitor for web shell execution patterns

How to Mitigate CVE-2024-5745

Immediate Actions Required

  • Remove or disable the vulnerable file upload functionality until a patch is available
  • Implement strict file extension whitelisting allowing only legitimate image formats (.jpg, .jpeg, .png, .gif)
  • Configure the web server to prevent execution of PHP scripts in upload directories
  • Review upload directories for any suspicious files and remove them immediately

Patch Information

No official vendor patch has been released at the time of this writing. Organizations using Bakery Online Ordering System 1.0 should contact itsourcecode for remediation guidance. Additional vulnerability details are available at VulDB #267414.

Workarounds

  • Disable the product upload functionality or restrict access to trusted administrators only
  • Implement server-side file type validation using both extension checking and MIME type verification
  • Store uploaded files outside the web root to prevent direct execution
  • Configure .htaccess or web server settings to deny PHP execution in upload directories
  • Apply input sanitization to rename uploaded files with random names and force image extensions
bash
# Apache configuration to prevent PHP execution in upload directory
# Add to .htaccess in the uploads folder
<FilesMatch "\.php$">
    Deny from all
</FilesMatch>

# Alternative: Disable PHP engine entirely
php_flag engine off

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechBakery Online Ordering System

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.19%

  • 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 CVE Analysis

  • VulDB CTI Report #267414

  • VulDB #267414

  • VulDB Submission Report #351827
  • Related CVEs
  • CVE-2024-5636: Bakery Online Ordering System SQLi Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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