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
    • 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-2025-66802

CVE-2025-66802: Contact Tracing System RCE Vulnerability

CVE-2025-66802 is a remote code execution vulnerability in Sourcecodester Covid-19 Contact Tracing System 1.0. Attackers can upload malicious PHP shells via user image fields. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-66802 Overview

Sourcecodester Covid-19 Contact Tracing System 1.0 contains a critical Remote Code Execution (RCE) vulnerability. The application fails to properly validate file uploads in the user image functionality, allowing attackers to upload a malicious PHP reverse shell that enables complete remote code execution on the target system.

Critical Impact

This vulnerability allows unauthenticated attackers to execute arbitrary code on the server through malicious PHP file uploads, potentially leading to complete system compromise.

Affected Products

  • Sourcecodester Covid-19 Contact Tracing System 1.0

Discovery Timeline

  • 2026-01-12 - CVE CVE-2025-66802 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2025-66802

Vulnerability Analysis

This vulnerability is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type). The Sourcecodester Covid-19 Contact Tracing System fails to implement proper file type validation on user profile image uploads. This fundamental security flaw allows attackers to bypass intended restrictions and upload executable PHP files instead of legitimate image files.

The vulnerability exists in the image upload functionality designed for user profile management. When a user uploads a profile image, the application does not adequately verify that the uploaded file is actually an image. An attacker can craft a PHP reverse shell payload, disguise it with an image-like filename or manipulate content-type headers, and successfully upload it to the server.

Once the malicious PHP file is uploaded and stored on the web server, the attacker can access the file directly through a web request, triggering execution of the embedded PHP code. This enables establishment of a reverse shell connection back to the attacker's system, granting full remote access to the compromised server.

Root Cause

The root cause of this vulnerability is the absence of proper server-side file validation in the image upload functionality. The application relies on client-side validation or superficial checks (such as file extension verification) that can be easily bypassed. Proper validation should include:

  • MIME type verification using server-side file content inspection
  • File extension allowlisting with strict enforcement
  • File content analysis to verify actual image data
  • Renaming uploaded files to prevent direct execution

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Accessing the user profile or image upload functionality of the Covid-19 Contact Tracing System
  2. Crafting a PHP reverse shell payload with appropriate headers to bypass basic validation
  3. Uploading the malicious PHP file through the image upload endpoint
  4. Locating the uploaded file path on the web server
  5. Sending a request to the uploaded PHP file to trigger code execution
  6. Establishing a reverse shell connection for persistent access

The vulnerability allows complete compromise of the web server, including access to sensitive contact tracing data, database credentials, and potential lateral movement within the network.

Detection Methods for CVE-2025-66802

Indicators of Compromise

  • Presence of PHP files in image upload directories (e.g., files with .php extension in /uploads/ or /images/ folders)
  • Unusual outbound network connections originating from the web server process
  • Web server logs showing requests to PHP files in image upload directories
  • Unexpected shell processes spawned by the web server user account

Detection Strategies

  • Monitor file uploads for PHP file signatures and executable content within image directories
  • Implement web application firewall (WAF) rules to detect PHP code patterns in file upload requests
  • Configure intrusion detection systems to alert on reverse shell connection patterns
  • Review web server logs for suspicious access patterns to upload directories

Monitoring Recommendations

  • Enable file integrity monitoring on web server upload directories
  • Configure alerts for new executable files created in image storage locations
  • Monitor network traffic for outbound connections on common reverse shell ports
  • Implement logging of all file upload activities with content-type analysis

How to Mitigate CVE-2025-66802

Immediate Actions Required

  • Disable or restrict access to the image upload functionality until a patch is applied
  • Review upload directories for any existing malicious PHP files and remove them
  • Implement server-side file validation using content inspection, not just extension checks
  • Configure the web server to prevent PHP execution in upload directories

Patch Information

No official vendor patch information is currently available. Organizations using Sourcecodester Covid-19 Contact Tracing System 1.0 should contact the vendor for security updates or consider implementing the workarounds listed below. Additional technical details can be found in the GitHub PoC Repository.

Workarounds

  • Configure .htaccess or web server settings to disable PHP execution in upload directories
  • Implement strict file type validation using PHP functions like getimagesize() or finfo_file()
  • Store uploaded files outside the web root and serve them through a controlled script
  • Rename uploaded files to random strings without preserving the original extension
bash
# Apache configuration to disable PHP execution in uploads directory
# Add to .htaccess file in the uploads directory

# Disable PHP execution in this directory
<FilesMatch "\.php$">
    SetHandler none
    SetHandler default-handler
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Alternative: Disable all script execution
Options -ExecCGI
RemoveHandler .php .phtml .php3 .php4 .php5

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSourcecodester

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.26%

  • 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-434
  • Technical References
  • Feedly CVE Report

  • GitHub PoC Repository
  • Related CVEs
  • CVE-2026-5575: Record Management System SQL Vulnerability

  • CVE-2026-5325: Simple Customer Management System XSS Flaw

  • CVE-2026-30523: Loan Management System Logic Vulnerability

  • CVE-2026-4968: Diary App 1.0 CSRF 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