Lucene search
K

Zyxel Router Command Injection

🗓️ 04 Jul 2025 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 3 Views

Zyxel routers have command injection vulnerability in Remote System Log function affecting multiple models.

Related
Refs
Code
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(241345);
  script_version("1.2");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/07/04");

  script_cve_id("CVE-2017-18368");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2023/08/28");

  script_name(english:"Zyxel Router Command Injection");

  script_set_attribute(attribute:"synopsis", value:
"The router is affected by a command injection vulnerability.");
  script_set_attribute(attribute:"description", value:
"Firmware version of the Zyxel TCLinux device is affected by command injection vulnerability:

  - The ZyXEL three router models - ZyXEL P660HN-T1A v1, ZyXEL P660HN-T1A v2 and Billion 5200W-T - router 
    distributed by TrueOnline has a command injection vulnerability in the Remote System Log forwarding 
    function, which is accessible by an unauthenticated user. The vulnerability is in the ViewLog.asp page 
    and can be exploited through the remote_host parameter. (CVE-2017-18368)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  # https://raw.githubusercontent.com/pedrib/PoC/master/advisories/zyxel_trueonline.txt
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?47cef64c");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2017/Jan/40");
  script_set_attribute(attribute:"solution", value:
"See Vendor Advisory.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2017-18368");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'TrueOnline / ZyXEL P660HN-T v1 Router Unauthenticated Command Injection');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2016/12/26");
  script_set_attribute(attribute:"patch_publication_date", value:"2017/01/18");
  script_set_attribute(attribute:"plugin_publication_date", value:"2025/07/04");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/h:zyxel");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2025 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("zyxel_router_detect_getbasicinfo.nbin");
  script_require_keys("www/zyxel_router", "Settings/ParanoidReport");
  script_require_ports("Services/www", 80, 443);

  exit(0);
}

include('vcf_extras.inc');

var app_info = vcf::zyxel_router::get_app_info();

if (report_paranoia < 2) audit(AUDIT_PARANOID);

var constraints = [
  { 'models': make_list("P-660HN-Tv1"), 'equal': vcf::zyxel_router::transform_ver(firmware:'V3.40(ULM.0)b31'), 'fixed_display': 'See Vendor Advisory'},
  { 'models': make_list("P-660HN-Tv2"), 'equal': vcf::zyxel_router::transform_ver(firmware:'V3.40(ULM.0)b31'), 'fixed_display': 'See Vendor Advisory'},
  { 'models': make_list("P-660HN-T1A_IPv6"), 'equal': vcf::zyxel_router::transform_ver(firmware:'V3.40(ULM.0)b31'), 'fixed_display': 'See Vendor Advisory'},
];

vcf::zyxel_router::check_version_and_report(
    app_info    : app_info,
    constraints : constraints,
    severity    : SECURITY_HOLE
);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Jul 2025 00:00Current
8.7High risk
Vulners AI Score8.7
CVSS 3.19.8
CVSS 210
EPSS0.94508
SSVC
3