Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister low-privilege account on target site
-
DeliveryCraft XSS payload in comment content field
-
ExploitSubmit POST to /social/ajax.php?action=save_upload
-
ExecutionPayload stored or reflected in comment output
-
PersistVictim user views page with injected comment
-
ImpactMalicious script executes in victim browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold a low-privilege authenticated account on the target Photo Share Website instance (confirmed by PR:L in the CVSS 4.0 vector) - unauthenticated exploitation is not supported by the available data. A victim user must also actively view the page containing the injected comment (UI:P), meaning fully automated, zero-interaction exploitation is not possible. The application must be network-accessible (AV:N). No special server-side configuration or non-default settings are required beyond a standard deployment of Photo Share Website 1.0 with comment functionality enabled. Exploitation is limited by the dual requirement of attacker authentication and victim interaction - organizations that restrict account registration to trusted users significantly reduce attack surface. |
| Impact | The CVSS 4.0 score of 5.1 (Medium) is a reasonable characterization of real-world risk. Attack vector is network (AV:N) with low complexity (AC:L) and no special attack requirements (AT:N), meaning no environmental preconditions beyond a reachable web deployment are needed. However, the requirement for low privilege (PR:L) and passive victim interaction (UI:P) prevents unauthenticated or fully automated mass exploitation, meaningfully reducing blast radius compared to a PR:N/UI:N XSS. There is no CISA KEV listing, so confirmed active exploitation is not established. The E:P modifier in the CVSS 4.0 vector confirms publicly available exploit code, which aligns with the GitHub proof-of-concept reference - this is a distinct signal from confirmed active exploitation and should be weighed accordingly. EPSS data is not provided; exploitation probability cannot be independently assessed. The impact is scoped to integrity of the vulnerable system (VI:L) per the 4.0 vector, consistent with XSS enabling UI manipulation and potential session theft in victim browsers. Given the application's predominant use in educational contexts, production deployment footprint is likely limited, further containing aggregate risk. |
| Exploit ScenarioDerived | An attacker registers a low-privilege account on an internet-accessible Photo Share Website 1.0 instance and submits a comment containing a crafted JavaScript payload (e.g., a cookie-stealing script) in the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 07, 2026
Cross-site scripting in SourceCodester Photo Share Website 1.0 allows a low-privileged authenticated attacker to inject malicious JavaScript via the content parameter of the comment input box at /social/ajax.php?action=save_upload, executing arbitrary script in the browsers of users who subsequently view the injected content. The CVSS 4.0 vector (PR:L/UI:P) confirms exploitation requires an authenticated session and victim interaction, constraining opportunistic mass exploitation. No public exploit identified at time of analysis is incorrect here - publicly available exploit code exists, referenced via a GitHub issue (https://github.com/Andyov0/cve/issues/1), meaningfully elevating near-term risk for any reachable deployment.
RemediationAI
No vendor-released patch has been identified at time of analysis. The immediate code-level fix is to apply proper output encoding to the content parameter before rendering it in any HTML context - in PHP, applying htmlspecialchars($content, ENT_QUOTES, 'UTF-8') at the point of output in the comment rendering logic within or downstream of /social/ajax.php?action=save_upload would neutralize the injection. As a compensating control, deploying a Web Application Firewall rule targeting script injection patterns (e.g., <script>, onerror=, javascript:) in the content POST parameter to this endpoint can reduce exposure, though WAF rules introduce bypass risk via encoding variants and require ongoing maintenance. Restricting comment submission to verified or higher-trust user roles reduces attacker opportunity surface if the application's user model supports role tiers. Monitor the VulDB advisory at https://vuldb.com/vuln/386994 and the exploit reference at https://github.com/Andyov0/cve/issues/1 for any upstream patch release. Given the absence of an active upstream patch and the application's educational-project nature, production operators should strongly consider replacing the component with a maintained alternative.
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 application is a PHP-based social photo-sharing platform developed by SourceCodester (CPE: cpe:2.3:a:sourcecodester:photo_share_website:*:*:*:*:*:*:*:*). The vulnerable endpoint /social/ajax.php?action=save_upload processes comment submissions through the content POST parameter. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting): user-supplied input is insufficiently sanitized or HTML-encoded before being embedded into rendered page output, allowing script injection payloads to execute in victim browsers. The wildcard version in the CPE string suggests all known versions are potentially affected, with 1.0 explicitly confirmed. SourceCodester distributes this application as a downloadable PHP project primarily for educational and demonstration use.
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:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Network-delivered XSS requiring low-privilege comment submission and victim page view; scope changes to victim browser context enabling script execution with limited C and I impact.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was identified in SourceCodester Photo Share Website 1.0. This affects an unknown part of the file /social/ajax.php?action=save_upload of the component Comment Input Box. The manipulation of the argument content leads to cross site scripting. The attack may be initiated remotely. The exploit is publicly available and might 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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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
Unrestricted file upload in SourceCodester Photo Share Website 1.0 exposes the /social/ajax.php?action=save_upload endpo
Stored or reflected cross-site scripting in SourceCodester Photo Share Website 1.0 enables remote authenticated attacker
EUVD-2026-54572
GHSA-395c-4p59-c3px
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB