Lucene search

K
nessusThis script is Copyright (C) 2005-2022 Tenable Network Security, Inc.NEWSSCRIPT_ADMIN_MODE.NASL
HistoryMar 10, 2005 - 12:00 a.m.

NewsScript newsscript.pl mode Parameter Privilege Escalation

2005-03-1000:00:00
This script is Copyright (C) 2005-2022 Tenable Network Security, Inc.
www.tenable.com
12

10 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

0.068 Low

EPSS

Percentile

93.9%

The remote host is running a version of NewsScript.co.uk’s NewsScript that allows a remote attacker to bypass authentication simply by setting the ‘mode’ parameter to ‘admin’, thereby allowing him to add, delete, or modify news stories and headlines at will.

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

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

if (description)
{
  script_id(17309);
  script_version("1.17");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-2005-0735");
  script_bugtraq_id(12761);

  script_name(english:"NewsScript newsscript.pl mode Parameter Privilege Escalation");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a CGI application that is affected by an
access validation vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host is running a version of NewsScript.co.uk's NewsScript
that allows a remote attacker to bypass authentication simply by setting
the 'mode' parameter to 'admin', thereby allowing him to add, delete, or
modify news stories and headlines at will.");
  # http://www.newsscript.co.uk/helpforum/helpforum.pl?onderwerp=NewsScript%20Fix%20available&todo=BekijkOnderwerp
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?85aba152");
  script_set_attribute(attribute:"solution", value:
"Upgrade to a version of NewsScript released on or after March 22, 2005.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:U/RC:ND");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_cwe_id(264);

  script_set_attribute(attribute:"vuln_publication_date", value:"2005/03/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2005/03/10");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2005-2022 Tenable Network Security, Inc.");

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

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:80, embedded: 0);

# Loop through directories.
if (thorough_tests) dirs = list_uniq(make_list("/news", cgi_dirs()));
else dirs = make_list(cgi_dirs());

foreach dir (dirs) {
  # Let's try the exploit.
  w = http_send_recv3(method:"GET", item:string(dir, "/newsscript.pl?mode=admin"), port:port);
  if (isnull(w)) exit(1, "The web server on port "+port+" did not answer");
  res = w[2];

  # If the results have a link to add a record, there's a problem.
  if (
    "?mode=admin&action=add" >< res &&
    egrep(string:res, pattern:"<a href=[^>]+/newsscript.pl\\?mode=admin&action=add")
  ) {
    security_warning(port);
    exit(0);
  }
}

10 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

0.068 Low

EPSS

Percentile

93.9%

Related for NEWSSCRIPT_ADMIN_MODE.NASL