Greenbone OS SQL Injection Vulnerability

2014-11-30T00:00:00
ID OPENVAS:1361412562310105126
Type openvas
Reporter Copyright (C) 2014 Greenbone Networks GmbH
Modified 2020-06-04T00:00:00

Description

GreenboneOS is prone to a SQL injection vulnerability

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# Greenbone OS SQL Injection Vulnerability
#
# Authors:
# iMichael Meyer <michael.meyer@greenbone.net>
#
# Copyright:
# Copyright (c) 2014 Greenbone Networks GmbH
#
# 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:/o:greenbone:greenbone_os";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105126");
  script_cve_id("CVE-2014-9220");
  script_bugtraq_id(71360);
  script_version("2020-06-04T11:48:22+0000");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"2020-06-04 11:48:22 +0000 (Thu, 04 Jun 2020)");
  script_tag(name:"creation_date", value:"2014-11-30 14:20:39 +0200 (Sun, 30 Nov 2014)");
  script_name("Greenbone OS SQL Injection Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2014 Greenbone Networks GmbH");
  script_dependencies("gb_greenbone_os_consolidation.nasl");
  script_mandatory_keys("greenbone/gos/detected");

  script_xref(name:"URL", value:"https://www.greenbone.net/en/security-response-team/#toggle-id-4");

  script_tag(name:"summary", value:"GreenboneOS is prone to a SQL injection vulnerability");

  script_tag(name:"impact", value:"A successful attack is possible if the attacker controls a user
  account for the web interface or for OMP. The attacker will gain read access to the database.");

  script_tag(name:"insight", value:"A software bug in OpenVAS Manager as used in Greenbone OS allows
  remote attackers to inject SQL code that reads data from the database.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"solution", value:"Update to Greenbone OS 2.2.0-34/3.0.29.");

  script_tag(name:"affected", value:"Greenbone OS 2.2.0-1 up to 2.2.0-33.

  Greenbone OS 3.0.1 up to 3.0.28.");

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

  exit(0);
}

include("host_details.inc");
include("version_func.inc");

if( ! version = get_kb_item("greenbone/gos/version") ) exit( 0 );
version = str_replace( string:version, find:"-", replace:"." );

if( version_is_less_equal( version:version, test_version:"2.2.0.33" ) ||
    version_in_range( version:version, test_version:"3.0.1", test_version2:"3.0.28" ) )
{

  if( version =~ "^2\.2" )
    fixed_version = '2.2.0.34';
  else
    fixed_version = '3.0.29';

  report = report_fixed_ver( installed_version:version, fixed_version:fixed_version );
  security_message( port:0, data:report );
  exit( 0 );
}

exit( 99 );