deb_1311_1.nasl
来自「漏洞扫描源码,可以扫描linux,windows,交换机路由器」· NASL 代码 · 共 139 行
NASL
139 行
# OpenVAS Vulnerability Test# $Id$# Description: Auto-generated from advisory DSA 1311-1## Authors:# Thomas Reinke <reinke@securityspace.com>## Copyright:# Copyright (c) 2007 E-Soft Inc. http://www.securityspace.com# Text descriptions are largerly excerpted from the referenced# advisory, and are Copyright (c) the respective author(s)## 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(58359); script_cve_id("CVE-2007-2138"); script_version ("$"); name["english"] = "Debian Security Advisory DSA 1311-1 (postgresql-7.4)"; script_name(english:name["english"]); desc["english"] = "The remote host is missing an update to postgresql-7.4announced via advisory DSA 1311-1.It was discovered that the PostgreSQL database performs insufficientvalidation of variables passed to privileged SQL statement calledsecurity definers, which could lead to SQL privilege escalation.For the oldstable distribution (sarge) this problem has been fixed inversion 7.4.7-6sarge5. A powerpc build is not yet available due toproblems with the build host. It will be provided later.For the stable distribution (etch) this problem has been fixed inversion 7.4.17-0etch1.For the unstable distribution (sid) this problem has been fixed inversion 7.4.17-1.We recommend that you upgrade your PostgreSQL packages.Solution:https://secure1.securityspace.com/smysecure/catid.html?in=DSA%201311-1Risk factor : High"; script_description(english:desc["english"]); summary["english"] = "Debian Security Advisory DSA 1311-1 (postgresql-7.4)"; script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_copyright(english:"Copyright (c) 2007 E-Soft Inc. http://www.securityspace.com"); family["english"] = "Debian Local Security Checks"; script_family(english:family["english"]); script_dependencies("gather-package-list.nasl"); script_require_keys("ssh/login/packages"); exit(0);}## The script code starts here#include("revisions-lib.inc");include("pkg-lib-deb.inc");vuln = 0;if(isdpkgvuln(pkg:"postgresql-doc", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"libecpg-dev", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"libecpg4", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"libpgtcl", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"libpgtcl-dev", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"libpq3", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-client", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-contrib", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-dev", ver:"7.4.7-6sarge5", rls:"DEB3.1")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-doc-7.4", ver:"7.4.17-0etch1", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-server-dev-7.4", ver:"7.4.17-0etch1", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-7.4", ver:"7.4.17-0etch1", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-client-7.4", ver:"7.4.17-0etch1", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-contrib-7.4", ver:"7.4.17-0etch1", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-plperl-7.4", ver:"7.4.17-0etch1", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-plpython-7.4", ver:"7.4.17-0etch1", rls:"DEB4.0")) { vuln = 1;}if(isdpkgvuln(pkg:"postgresql-pltcl-7.4", ver:"7.4.17-0etch1", rls:"DEB4.0")) { vuln = 1;}if(vuln) { security_hole(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?