Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed Photo Share Website login endpoint
-
DeliverySend crafted HTTP POST with SQL payload in email parameter
-
ExploitInject into backend SQL query without sanitization
-
ExecutionBypass authentication or enumerate database records
-
ImpactAccess or exfiltrate user credentials and application data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions are required - the endpoint |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/E:P) signals maximum accessibility - network-reachable, low complexity, no prerequisites, with a confirmed public exploit - which represents a genuine operational risk for any exposed instance. The impact metrics (VC:L/VI:L/VA:L) are conservatively rated, reflecting partial database read/write/availability effects rather than full compromise, though chained exploitation (e.g., auth bypass leading to admin function abuse) could escalate impact beyond these bounds. The 6.9 score is moderate but the E:P exploit maturity modifier is significant: tooling already exists to exploit this. No EPSS data was provided; given the product's niche footprint, population-level exploitation probability is likely low despite per-instance ease. The absence of a CISA KEV listing suggests no confirmed mass exploitation campaigns, consistent with the product's narrow deployment base. The primary real-world risk is targeted attack against organizations running exposed SourceCodester demo applications or production instances built on this codebase. |
| Exploit ScenarioDerived | An unauthenticated remote attacker sends a crafted HTTP POST request to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 07, 2026
SQL injection in SourceCodester Photo Share Website 1.0 exposes the login endpoint /social/ajax.php?action=login to remote unauthenticated exploitation via the email parameter, enabling attackers to manipulate backend database queries. The CVSS 4.0 vector confirms zero-barrier access - no credentials, no complexity, no user interaction required against a default deployment. A public proof-of-concept exploit is available on GitHub, meaningfully lowering the threshold for opportunistic attacks, though no active exploitation has been confirmed in CISA KEV.
RemediationAI
No vendor-released patch has been identified at time of analysis. The definitive fix requires refactoring the login handler in /social/ajax.php to replace string-concatenated SQL with parameterized queries or prepared statements (e.g., PHP PDO or mysqli prepare()/bind_param()) - this eliminates the injection root cause. As an immediate compensating control, administrators should restrict access to the login endpoint at the web server or firewall layer if the application is not required to be publicly accessible; this eliminates remote exploitability but also blocks legitimate users. Deploying a WAF rule to detect and block common SQL injection patterns against the email parameter provides partial mitigation with lower availability impact, though WAF rules can be bypassed by determined attackers and may cause false positives on valid email inputs containing special characters. Rate-limiting requests to /social/ajax.php?action=login limits automated scanning efficiency but does not block the attack. Monitor https://vuldb.com/vuln/386713 and https://www.sourcecodester.com/ for any upstream patch release.
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
Photo Share Website 1.0 is a PHP-based open-source web application distributed by SourceCodester. The login handler at /social/ajax.php?action=login accepts a user-supplied email parameter that is incorporated into a SQL query without parameterization or sanitization, satisfying CWE-89 (Improper Neutralization of Special Elements used in SQL Command - SQL Injection). This is a textbook PHP string-concatenation SQL injection pattern, common in SourceCodester educational projects that use direct mysqli or similar calls without prepared statements. The CPE string cpe:2.3:a:sourcecodester:photo_share_website:*:*:*:*:*:*:*:* uses a version wildcard, indicating all tracked versions are affected with no confirmed upper bound. The attack surface is the public-facing login form, requiring no session or account.
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:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable unauthenticated login endpoint with no complexity; partial C/I/A impact consistent with limited SQL query manipulation per CVSS 4.0 signal.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was found in SourceCodester Photo Share Website 1.0. The impacted element is an unknown function of the file /social/ajax.php?action=login. The manipulation of the argument email results in sql injection. The attack can be launched remotely. The exploit has been made public and could 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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
More in Photo Share Website
View allSQL injection in SourceCodester Photo Share Website 1.0 exposes the unauthenticated user registration endpoint (/social/
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
Stored or reflected cross-site scripting in SourceCodester Photo Share Website 1.0 enables remote authenticated attacker
EUVD-2026-54369
GHSA-92jx-33pg-rj87
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB