Lucene search
+L

PostgreSQL Denial of Service Vulnerability - Windows

🗓️ 20 Mar 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 46 Views

PostgreSQL Denial of Service Vulnerability - Windows. Input validation error allows remote attackers to crash the server via a specially crafted SQL query. Upgrade to PostgreSQL 8.3.23, 8.4.16, 9.0.12, 9.1.8, 9.2.3 or later

Related
Refs
Code
# SPDX-FileCopyrightText: 2013 Greenbone AG
# 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-only

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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.803442");
  script_version("2024-07-19T05:05:32+0000");
  script_cve_id("CVE-2013-0255");
  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:N/I:N/A:C");
  script_tag(name:"last_modification", value:"2024-07-19 05:05:32 +0000 (Fri, 19 Jul 2024)");
  script_tag(name:"creation_date", value:"2013-03-20 17:42:26 +0530 (Wed, 20 Mar 2013)");
  script_name("PostgreSQL Denial of Service Vulnerability - Windows");
  script_xref(name:"URL", value:"http://securitytracker.com/id?1028092");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/57844");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/81917");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2013 Greenbone AG");
  script_family("Denial of Service");
  script_dependencies("gb_postgresql_consolidation.nasl", "os_detection.nasl");
  script_mandatory_keys("postgresql/detected", "Host/runs_windows");

  script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to crash the server
  via a specially crafted SQL query.");

  script_tag(name:"affected", value:"PostgreSQL version 9.2.x before 9.2.3, 9.1.x before 9.1.8, 9.0.x
  before 9.0.12, 8.4.x before 8.4.16, and 8.3.x before 8.3.23.");

  script_tag(name:"insight", value:"Input validation error within the 'enum_recv()' function of
  backend/utils/adt/enum.c.");

  script_tag(name:"solution", value:"Upgrade to PostgreSQL 8.3.23, 8.4.16, 9.0.12, 9.1.8, 9.2.3 or later.");

  script_tag(name:"summary", value:"PostgreSQL is prone to a denial of service vulnerability.");

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

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

if(isnull(port = get_app_port(cpe:CPE)))
  exit(0);

if(!infos = get_app_version_and_location(cpe:CPE, port:port, exit_no_version:TRUE))
  exit(0);

vers = infos["version"];
loc = infos["location"];

if(vers !~ "^[89]\.")
  exit(99);

if(version_in_range(version:vers, test_version:"8.3", test_version2:"8.3.22") ||
   version_in_range(version:vers, test_version:"8.4", test_version2:"8.4.15") ||
   version_in_range(version:vers, test_version:"9.0", test_version2:"9.0.11") ||
   version_in_range(version:vers, test_version:"9.1", test_version2:"9.1.7") ||
   version_in_range(version:vers, test_version:"9.2", test_version2:"9.2.2")) {
  report = report_fixed_ver(installed_version:vers, fixed_version:"See references", install_path:loc);
  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