Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108973 Overview
CVE-2026-108973 is an unrestricted file upload vulnerability in SourceCodester Contact Tracing System 1.0. The flaw resides in the move_uploaded_file function invoked by /classes/Users.php?f=save. Attackers manipulate the img or id parameters to upload arbitrary files to the web server. The vulnerability requires no authentication and can be exploited remotely over the network. Public disclosure of the exploit technique increases the likelihood of opportunistic attacks against exposed instances. The weakness is classified under CWE-284: Improper Access Control and enables adversaries to place executable content, such as PHP web shells, into web-accessible directories.
Critical Impact
Unauthenticated attackers can upload arbitrary files, including server-side scripts, leading to pre-authentication remote code execution on the hosting web server.
Affected Products
- SourceCodester Contact Tracing System 1.0
- /classes/Users.php?f=save endpoint
- Deployments exposing the application over HTTP/HTTPS
Discovery Timeline
- 2026-10-13 - CVE-2026-108973 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-108973
Vulnerability Analysis
The vulnerability exists in the user-save handler at /classes/Users.php?f=save. The handler accepts a file upload tied to the img form field and an id parameter that influences the destination path. The application calls PHP's move_uploaded_file without validating file extension, MIME type, or content signature. Attackers submit a crafted multipart request containing a PHP payload disguised as an image. Once written to a web-reachable directory, the uploaded script executes under the web server context on request. The TraceX Labs analysis demonstrates a pre-authentication path to remote code execution, confirming that session or role checks are absent on the save route.
Root Cause
The underlying defect is improper access control combined with missing upload validation. The save function trusts client-supplied file metadata and does not restrict uploads to safe content types. There is no authentication gate on the endpoint, so anonymous users reach the file-write code path. The destination directory is served by the web server and permits script interpretation, which transforms arbitrary file write into code execution.
Attack Vector
Exploitation requires only HTTP access to the vulnerable application. The attacker sends a POST request to /classes/Users.php?f=save with a multipart body containing the malicious file in the img field and a controlled id value. After the server stores the payload under a predictable path (commonly uploads/), the attacker issues a follow-up GET request to execute the script. Successful execution grants command execution as the web server user, enabling further lateral movement, data theft, or persistence. See the TraceX Labs RCE Analysis for the full exploitation walkthrough.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-108973
Indicators of Compromise
- POST requests to /classes/Users.php?f=save from external or untrusted IP addresses, especially with multipart bodies containing non-image file extensions such as .php, .phtml, or .phar.
- New or unexpected files in the application's uploads/ directory, particularly files whose contents include PHP tags despite image-like filenames.
- Outbound network connections initiated by the PHP-FPM or Apache worker process shortly after a file upload event.
Detection Strategies
- Deploy web application firewall rules that inspect uploads to the save endpoint and reject payloads whose magic bytes do not match the declared MIME type.
- Monitor web server access logs for sequential POST-then-GET patterns targeting the same filename inside the uploads directory.
- Correlate file-creation events in the webroot with subsequent process executions originating from the web server user to flag post-upload code execution.
Monitoring Recommendations
- Enable file integrity monitoring on all web-accessible directories, with alerts on creation of script files.
- Forward web server logs, PHP error logs, and host process telemetry to a centralized data lake for correlation and retrospective hunting.
- Baseline normal upload sizes, extensions, and source IPs for the Contact Tracing System and alert on deviations.
How to Mitigate CVE-2026-108973
Immediate Actions Required
- Restrict network access to the Contact Tracing System using firewall rules or VPN gating until a fix is deployed.
- Set the uploads/ directory to disallow script execution at the web server configuration level.
- Audit the uploads directory and remove any unauthorized or script-bearing files.
- Rotate credentials and session tokens stored on the host if evidence of file upload activity exists.
Patch Information
No official vendor patch has been published for SourceCodester Contact Tracing System 1.0 at the time of CVE assignment. Operators should track the SourceCodester Security Blog and the VulDB CVE-2026-108973 Entry for vendor updates. Until a patched release is available, apply the compensating controls described below.
Workarounds
- Enforce authentication and authorization on /classes/Users.php?f=save through a reverse proxy or application-level middleware.
- Validate uploads server-side by checking file signatures, enforcing an allowlist of extensions, and rejecting executable content types.
- Store uploaded files outside the webroot and serve them through a controlled handler that sets a non-executable Content-Type.
- Disable PHP interpretation inside the uploads directory using php_flag engine off in Apache or an equivalent directive in Nginx.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

