Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege account on target instance
-
DeliverySubmit crafted XSS payload in Comment field at /social/index.php?page=home
-
ExploitVictim authenticated user loads the home page
-
ExecutionMalicious script executes in victim browser
-
ImpactSteal session token or perform action as victim
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 | Exploitation requires a valid low-privilege authenticated account on the Photo Share Website instance (PR:L per CVSS 4.0 vector). The attacker must be able to submit a comment on /social/index.php?page=home, meaning the commenting feature must be accessible to their account level. A secondary victim must actively visit or reload the affected page for the injected script to execute (UI:P). No special server configuration is required - the vulnerability exists in the default application code. Limiting factors: an attacker cannot exploit this without first obtaining a valid account; unauthenticated visitors cannot trigger the flaw; the impact is confined to the application's browser context and does not allow server-side code execution or direct database access. |
| Impact | The CVSS 4.0 base score of 2.0 places this firmly in the low-severity tier, driven by PR:L (authenticated attacker), UI:P (victim interaction required), and impact limited to integrity (VI:L) with no confidentiality or availability impact. The E:P supplemental metric confirms a publicly available exploit, which marginally elevates real-world concern over a theoretical flaw. However, the absence of a KEV listing and the niche, non-enterprise nature of the product (a free SourceCodester educational PHP script) keep practical risk very low. EPSS data was not provided; given the product's obscure deployment footprint, exploitation probability in production environments is expected to be negligible. There is no conflict between the CVSS vector and the description - both consistently indicate a low-impact, authenticated, user-interaction-dependent XSS. This is not a priority for most security programs but warrants remediation for any organization knowingly running this application in a multi-user context. |
| Exploit ScenarioDerived | An authenticated low-privilege user submits a comment containing a crafted JavaScript payload (e.g., an image onerror or script tag) through the Comment field on /social/index.php?page=home. When another authenticated user visits the home page and the comment is rendered without encoding, the injected script executes in the victim's browser, potentially stealing session cookies or redirecting the victim to an attacker-controlled phishing site. A publicly available proof-of-concept on GitHub (gensnext/cve/issues/1) demonstrates this technique, lowering the bar for exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 07, 2026
Stored or reflected cross-site scripting in SourceCodester Photo Share Website 1.0 enables remote authenticated attackers to inject arbitrary JavaScript via the Comment argument at /social/index.php?page=home, executing in the browsers of other users who view the affected page. A publicly available proof-of-concept exploit exists on GitHub (gensnext/cve/issues/1), though the vulnerability carries a low CVSS 4.0 score of 2.0 and is not listed in the CISA KEV catalog, indicating no confirmed widespread active exploitation. Practical impact is limited to session hijacking, phishing redirection, or DOM manipulation within the application context of other authenticated users.
RemediationAI
No vendor-released patch has been identified at time of analysis for SourceCodester Photo Share Website. The primary recommended fix is to apply proper output encoding to all user-supplied data rendered in HTML context - specifically, PHP's htmlspecialchars() or htmlentities() functions should be applied to the Comment field value before it is written to the page response in /social/index.php. As a compensating control, operators can deploy a Web Application Firewall (WAF) rule to block common XSS payloads in the Comment parameter, though WAF bypass techniques exist and this is not a substitute for source-level fixing. Implementing a Content Security Policy (CSP) header restricting inline script execution would significantly reduce the exploitability of any remaining XSS vectors. Organizations using this application in production should evaluate whether the product can be replaced with an actively maintained alternative, given the absence of a formal security support posture from the vendor. References: VulDB entry https://vuldb.com/vuln/386954, POC https://github.com/gensnext/cve/issues/1.
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-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting), meaning the application fails to sanitize or encode user-supplied input in the Comment field before rendering it in the HTML response. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) confirms the vulnerability is network-reachable, requires a low-privilege authenticated user to submit the payload, and requires passive victim interaction for triggering - consistent with a stored or reflected XSS pattern where a second user must load the page. No server-side output encoding or Content Security Policy defense appears to be in place.
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-reachable XSS requiring low-privilege auth (PR:L) and victim page-load (UI:R); scope change to victim browser context justifies S:C with limited C:L/I:L impact.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A flaw has been found in SourceCodester Photo Share Website 1.0. The affected element is an unknown function of the file /social/index.php?page=home. This manipulation of the argument Comment causes cross site scripting. The attack may be initiated remotely. The exploit has been published 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
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
Cross-site scripting in SourceCodester Photo Share Website 1.0 allows a low-privileged authenticated attacker to inject
EUVD-2026-54509
GHSA-24ff-3qq5-28jr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB