Lucene search

K
openvasThis script is Copyright (C) 2005 Ferdy RiphagenOPENVAS:200003
HistoryAug 22, 2008 - 12:00 a.m.

Zeroblog <= 1.2a Cross-Site Scripting Vulnerability

2008-08-2200:00:00
This script is Copyright (C) 2005 Ferdy Riphagen
plugins.openvas.org
11

0.004 Low

EPSS

Percentile

70.7%

The remote host appears to be running ZeroBlog that is vulnerable to cross-site
scripting attacks.

# OpenVAS Vulnerability Test
# $Id: zeroblog_xss.nasl 4557 2016-11-17 15:51:20Z teissa $
# Description: Zeroblog <= 1.2a Cross-Site Scripting Vulnerability
#
# Authors:
# Ferdy Riphagen <f(dot)riphagen(at)nsec(dot)nl>
#
# Copyright:
# Copyright (C) 2005 Ferdy Riphagen
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# as published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#

if (description) {

  script_id(200003);
  script_version("$Revision: 4557 $");
  script_tag(name:"last_modification", value:"$Date: 2016-11-17 16:51:20 +0100 (Thu, 17 Nov 2016) $");
  script_tag(name:"creation_date", value:"2008-08-22 16:09:14 +0200 (Fri, 22 Aug 2008)");

  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_cve_id("CVE-2005-3264");
  script_bugtraq_id(15078);
  script_name("Zeroblog <= 1.2a Cross-Site Scripting Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_copyright("This script is Copyright (C) 2005 Ferdy Riphagen");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name : "solution" , value : "Unknown at this time.");
  script_tag(name : "summary" , value : "The remote host appears to be running ZeroBlog that is vulnerable to cross-site
  scripting attacks.");
  script_tag(name : "impact" , value : "A vulnerability was identified in Zeroblog, which may be exploited by
  remote attackers to inject script code.");
  script_tag(name : "insight" , value : "ZeroBlog does not properly sanitize user input in the 'threadID', 'replyID'
  and 'albumID' parameters.");

  script_tag(name:"solution_type", value:"WillNotFix");
  script_tag(name:"qod_type", value:"remote_app");
  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("url_func.inc");

port = get_http_port(default:80);

if (!can_host_php(port:port)) exit(0);
if (get_kb_item(string("www/", port, "/generic_xss"))) exit(0);

xss = "'<IFRAME SRC=javascript:alert(%27XSS DETECTED BY OpenVAS%27)></IFRAME>";
exss = urlencode(str:xss);

foreach dir (make_list_unique("/zeroblog", "/", "/blog", cgi_dirs(port:port)))
{

 if(dir == "/") dir = "";

 res = http_get_cache(item: dir + "/thread.php", port:port);
 if (res == NULL) exit(0);

 if (egrep(pattern:">.*Copyright.*(C).*ZeroCom.*computers", string:res))
 {
  req = http_get(item:string(dir, "/thread.php?threadID=", exss), port:port);

  recv = http_keepalive_send_recv(port:port, data:req, bodyonly:1);
  if(recv == NULL)exit(0);

  if(xss >< recv)
  {
   security_message(port:port);
   exit(0);
  }
 }
}

exit(99);

0.004 Low

EPSS

Percentile

70.7%

Related for OPENVAS:200003