Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliveryPOST crafted PHP webshell via img[]/imgName[] to /social/ajax.php
-
ExploitServer stores file without type validation
-
ExecutionIdentify upload storage path
-
PersistRequest uploaded webshell URL directly
-
ImpactExecute arbitrary OS commands as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid authenticated session with a low-privileged account (consistent with PR:L in the CVSS 4.0 vector - standard registered-user access is sufficient; no administrative role is needed). The target must be running SourceCodester Photo Share Website 1.0 with a PHP-capable web server. Full remote code execution is additionally contingent on the web server executing PHP scripts from the directory where uploads are stored - if PHP execution is disabled in that directory (e.g., via .htaccess or server config), impact is limited to arbitrary file write rather than code execution. No special network position, prior vulnerability chaining, or victim interaction is required. The attack is fully remotely launchable over the internet against any publicly exposed instance. |
| Impact | The official CVSS 4.0 score of 2.1 (VC:L/VI:L/VA:L) appears significantly understated for an unrestricted file upload vulnerability in a PHP application - the standard worst-case for this class is OS-level RCE. This conflict is notable and defenders should not rely solely on the numeric score. The CVSS 4.0 vector correctly captures that PR:L authentication is required and attack complexity is low (AC:L/AT:N). The E:P modifier confirms a public PoC exists, elevating practical risk above the base score suggests. The vulnerability is not in CISA KEV, so no confirmed widespread active exploitation is on record. SourceCodester products are predominantly used as educational demonstration scripts with limited enterprise deployment, which constrains realistic blast radius. Actual severity is strongly dependent on whether the web server executes PHP in the upload directory - a non-default hardened setup would reduce impact to unauthorized file storage only. EPSS data is not provided in the intelligence; defenders should treat this as low-prevalence but real-exploitability-when-conditions-met. |
| Exploit ScenarioDerived | An attacker with a valid low-privileged account on the Photo Share Website crafts a POST request to /social/ajax.php?action=save_upload, supplying a PHP webshell as the img[] file payload with a .php extension in the imgName[] parameter. The server writes the file to a web-accessible directory without validating its type; the attacker then requests the uploaded file's URL directly, triggering server-side execution and obtaining an interactive shell with the privileges of the web server process. A public PoC on GitHub demonstrates this technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 07, 2026
Unrestricted file upload in SourceCodester Photo Share Website 1.0 exposes the /social/ajax.php?action=save_upload endpoint to abuse via crafted img[] and imgName[] POST parameters, allowing authenticated low-privileged users to upload arbitrary file types - including PHP webshells. If the upload directory permits server-side script execution, this escalates to remote code execution on the host. A public proof-of-concept exploit exists on GitHub; the vulnerability is not listed in the CISA KEV catalog.
RemediationAI
No vendor-released patch has been identified at the time of analysis; the SourceCodester product page (https://www.sourcecodester.com/) should be monitored for updates. As immediate compensating controls: restrict accepted file types in the upload handler to an explicit allowlist of safe extensions (.jpg, .jpeg, .png, .gif) and validate both MIME type and file magic bytes server-side - not just the client-supplied filename in imgName[]. Store uploaded files outside the web root or in a dedicated directory with PHP execution explicitly disabled (Apache: php_flag engine off in .htaccess or Options -ExecCGI; Nginx: fastcgi_pass removed for the upload path). Rename all uploaded files to randomly generated non-executable names upon receipt. Apply file permissions (chmod 644) to stored uploads to prevent execution. Disabling the upload feature entirely (removing or restricting /social/ajax.php) is the lowest-risk mitigation if the feature is non-essential. The public PoC at https://github.com/gensnext/cve/issues/2 provides technical detail to inform testing of controls.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected product is SourceCodester Photo Share Website 1.0, a PHP-based social photo-sharing web application (CPE: cpe:2.3:a:sourcecodester:photo_share_website:*:*:*:*:*:*:*:*). The root cause is CWE-434 (Unrestricted Upload of File with Dangerous Type): the AJAX handler at /social/ajax.php fails to validate the MIME type, extension, or content of files submitted through the img[] and imgName[] parameters before writing them to disk. In PHP environments, an attacker can upload a .php file containing arbitrary server-side code; if the destination path is web-accessible and PHP execution is not disabled by the server configuration, the uploaded file can be retrieved via a direct HTTP request to trigger execution with the privileges of the web server process.
Know when Photo Share Website gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable endpoint, low-privilege auth required, no interaction needed; scope change reflects OS-level RCE potential when PHP executes uploaded webshell.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability has been found in SourceCodester Photo Share Website 1.0. The impacted element is an unknown function of the file /social/ajax.php?action=save_upload. Such manipulation of the argument img[]/imgName[] leads to unrestricted upload. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
More in Photo Share Website
View allSQL injection in SourceCodester Photo Share Website 1.0 exposes the unauthenticated user registration endpoint (/social/
SQL injection in SourceCodester Photo Share Website 1.0 exposes the login endpoint `/social/ajax.php?action=login` to re
Cross-site scripting in SourceCodester Photo Share Website 1.0 allows a low-privileged authenticated attacker to inject
Stored or reflected cross-site scripting in SourceCodester Photo Share Website 1.0 enables remote authenticated attacker
EUVD-2026-54511
GHSA-wqwv-2j54-cp38
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB