Lucene search
+L

Koha < 3.16.6, 3.18.x < 3.18.2 Multiple XSS Vulnerabilities - Active Check

🗓️ 27 Mar 2015 00:00:00Reported by Copyright (C) 2015 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 28 Views

Koha < 3.16.6, 3.18.x < 3.18.2 Multiple XSS Vulnerabilities - Active Check. Koha is prone to multiple cross-site scripting (XSS) vulnerabilities. Multiple errors exist as input passed via sort_by parameter to the opac parameter in 'opac-search.pl' and the sort_by parameter to the intranet parameter in 'catalogue/search.pl' are not validated before returning it to users. Successful exploitation will allow attacker to execute arbitrary HTML and script code in the context of an affected site. Affected versions are Koha prior to version 3.16.6 and version 3.18.x prior to 3.18.2

Related
Refs
Code
ReporterTitlePublishedViews
Family
cnvd
CNVD
Multiple Cross-Site Scripting Vulnerabilities in Koha
30 Dec 201400:00
cnvd
cve
CVE
CVE-2014-9446
2 Jan 201520:00
cve
cvelist
Cvelist
CVE-2014-9446
2 Jan 201520:00
cvelist
euvd
EUVD
EUVD-2014-9267
7 Oct 202500:30
euvd
nvd
NVD
CVE-2014-9446
2 Jan 201520:59
nvd
prion
Prion
Cross site scripting
2 Jan 201520:59
prion
redhatcve
RedhatCVE
CVE-2014-9446
22 May 202502:18
redhatcve
# Copyright (C) 2015 Greenbone Networks GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# 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.

CPE = "cpe:/a:koha:koha";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.805355");
  script_version("2022-08-29T10:21:34+0000");
  script_tag(name:"last_modification", value:"2022-08-29 10:21:34 +0000 (Mon, 29 Aug 2022)");
  script_tag(name:"creation_date", value:"2015-03-27 19:14:22 +0530 (Fri, 27 Mar 2015)");
  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-2014-9446");

  script_tag(name:"qod_type", value:"remote_analysis");

  script_tag(name:"solution_type", value:"VendorFix");

  script_name("Koha < 3.16.6, 3.18.x < 3.18.2 Multiple XSS Vulnerabilities - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2015 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_koha_http_detect.nasl");
  script_mandatory_keys("koha/http/detected");
  script_require_ports("Services/www", 80);

  script_tag(name:"summary", value:"Koha is prone to multiple cross-site scripting (XSS)
  vulnerabilities.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"insight", value:"Multiple errors exist as input passed via:

  - the sort_by parameter to the opac parameter in 'opac-search.pl'

  - the sort_by parameter to the intranet parameter in 'catalogue/search.pl'

  are not validated before returning it to users.");

  script_tag(name:"impact", value:"Successful exploitation will allow attacker to execute arbitrary
  HTML and script code in the context of an affected site.");

  script_tag(name:"affected", value:"Koha prior to version 3.16.6 and version 3.18.x prior to
  3.18.2.");

  script_tag(name:"solution", value:"Update to version 3.16.6 or 3.18.2 or later.");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/71803");
  script_xref(name:"URL", value:"http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13425");

  exit(0);
}

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

if( ! port = get_app_port( cpe:CPE, service:"www" ) )
  exit( 0 );

if( ! get_app_location( cpe:CPE, port:port, nofork:TRUE ) )
  exit( 0 );

url = '/cgi-bin/koha/opac-search.pl?idx=kw&q=12&sort_by="><svg/onload=alert(document.cookie)>&addto=';

if( http_vuln_check( port:port, url:url, check_header:TRUE, pattern:"alert\(document\.cookie\)",
                     extra_check:">Log in" ) ) {
  report = http_report_vuln_url( port:port, url:url );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );

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 Aug 2022 00:00Current
6.2Medium risk
Vulners AI Score6.2
CVSS 24.3
EPSS0.0122
28