Lucene search

K
nessusThis script is Copyright (C) 2008-2021 and is owned by Tenable, Inc. or an Affiliate thereof.CENTOS_RHSA-2008-0497.NASL
HistoryJun 26, 2008 - 12:00 a.m.

CentOS 4 : sblim (CESA-2008:0497)

2008-06-2600:00:00
This script is Copyright (C) 2008-2021 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
10

4.6 Medium

CVSS2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:L/Au:N/C:P/I:P/A:P

0.0004 Low

EPSS

Percentile

5.1%

Updated sblim packages that resolve a security issue are now available for Red Hat Enterprise Linux 4 and Red Hat Enterprise Linux 5.

This update has been rated as having important security impact by the Red Hat Security Response Team.

SBLIM stands for Standards-Based Linux Instrumentation for Manageability. It consists of a set of standards-based, Web-Based Enterprise Management (WBEM) modules that use the Common Information Model (CIM) standard to gather and provide systems management information, events, and methods to local or networked consumers via a CIM object services broker using the CMPI (Common Manageability Programming Interface) standard. This package provides a set of core providers and development tools for systems management applications.

It was discovered that certain sblim libraries had an RPATH (runtime library search path) set in the ELF (Executable and Linking Format) header. This RPATH pointed to a sub-directory of a world-writable, temporary directory. A local user could create a file with the same name as a library required by sblim (such as libc.so) and place it in the directory defined in the RPATH. This file could then execute arbitrary code with the privileges of the user running an application that used sblim (eg tog-pegasus). (CVE-2008-1951)

Users are advised to upgrade to these updated sblim packages, which resolve this issue.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from Red Hat Security Advisory RHSA-2008:0497 and 
# CentOS Errata and Security Advisory 2008:0497 respectively.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(33258);
  script_version("1.14");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/04");

  script_cve_id("CVE-2008-1951");
  script_xref(name:"RHSA", value:"2008:0497");

  script_name(english:"CentOS 4 : sblim (CESA-2008:0497)");
  script_summary(english:"Checks rpm output for the updated packages");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote CentOS host is missing one or more security updates."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"Updated sblim packages that resolve a security issue are now available
for Red Hat Enterprise Linux 4 and Red Hat Enterprise Linux 5.

This update has been rated as having important security impact by the
Red Hat Security Response Team.

SBLIM stands for Standards-Based Linux Instrumentation for
Manageability. It consists of a set of standards-based, Web-Based
Enterprise Management (WBEM) modules that use the Common Information
Model (CIM) standard to gather and provide systems management
information, events, and methods to local or networked consumers via a
CIM object services broker using the CMPI (Common Manageability
Programming Interface) standard. This package provides a set of core
providers and development tools for systems management applications.

It was discovered that certain sblim libraries had an RPATH (runtime
library search path) set in the ELF (Executable and Linking Format)
header. This RPATH pointed to a sub-directory of a world-writable,
temporary directory. A local user could create a file with the same
name as a library required by sblim (such as libc.so) and place it in
the directory defined in the RPATH. This file could then execute
arbitrary code with the privileges of the user running an application
that used sblim (eg tog-pegasus). (CVE-2008-1951)

Users are advised to upgrade to these updated sblim packages, which
resolve this issue."
  );
  # https://lists.centos.org/pipermail/centos-announce/2008-June/015002.html
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?9a05f438"
  );
  # https://lists.centos.org/pipermail/centos-announce/2008-June/015003.html
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?1c108dc9"
  );
  # https://lists.centos.org/pipermail/centos-announce/2008-June/015004.html
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?6ec66dc1"
  );
  script_set_attribute(
    attribute:"solution", 
    value:"Update the affected sblim packages."
  );
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P");
  script_cwe_id(264);

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-base");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-base-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-base-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-fsvol");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-fsvol-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-fsvol-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-network");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-network-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-network-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-nfsv3");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-nfsv3-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-nfsv4");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-nfsv4-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-params");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-params-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-sysfs");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-sysfs-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-syslog");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-cmpi-syslog-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-gather");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-gather-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-gather-provider");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-gather-test");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-testsuite");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:sblim-wbemcli");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:4");

  script_set_attribute(attribute:"vuln_publication_date", value:"2008/06/25");
  script_set_attribute(attribute:"patch_publication_date", value:"2008/06/24");
  script_set_attribute(attribute:"plugin_publication_date", value:"2008/06/26");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2008-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"CentOS Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/CentOS/release", "Host/CentOS/rpm-list");

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("rpm.inc");


if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/CentOS/release");
if (isnull(release) || "CentOS" >!< release) audit(AUDIT_OS_NOT, "CentOS");
os_ver = pregmatch(pattern: "CentOS(?: Linux)? release ([0-9]+)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "CentOS");
os_ver = os_ver[1];
if (! preg(pattern:"^4([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "CentOS 4.x", "CentOS " + os_ver);

if (!get_kb_item("Host/CentOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);


cpu = get_kb_item("Host/cpu");
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ("x86_64" >!< cpu && "ia64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "CentOS", cpu);


flag = 0;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-base-1.5.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-base-1.5.4-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-base-1.5.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-base-devel-1.5.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-base-devel-1.5.4-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-base-devel-1.5.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-base-test-1.5.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-base-test-1.5.4-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-base-test-1.5.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-devel-1.0.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-devel-1.0.4-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-devel-1.0.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-fsvol-1.4.3-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-fsvol-1.4.3-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-fsvol-1.4.3-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-fsvol-devel-1.4.3-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-fsvol-devel-1.4.3-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-fsvol-devel-1.4.3-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-fsvol-test-1.4.3-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-fsvol-test-1.4.3-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-fsvol-test-1.4.3-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-network-1.3.7-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-network-1.3.7-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-network-1.3.7-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-network-devel-1.3.7-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-network-devel-1.3.7-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-network-devel-1.3.7-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-network-test-1.3.7-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-network-test-1.3.7-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-network-test-1.3.7-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-nfsv3-1.0.13-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-nfsv3-1.0.13-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-nfsv3-1.0.13-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-nfsv3-test-1.0.13-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-nfsv3-test-1.0.13-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-nfsv3-test-1.0.13-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-nfsv4-1.0.11-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-nfsv4-1.0.11-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-nfsv4-1.0.11-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-nfsv4-test-1.0.11-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-nfsv4-test-1.0.11-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-nfsv4-test-1.0.11-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-params-1.2.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-params-1.2.4-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-params-1.2.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-params-test-1.2.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-params-test-1.2.4-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-params-test-1.2.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-sysfs-1.1.8-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-sysfs-1.1.8-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-sysfs-1.1.8-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-sysfs-test-1.1.8-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-sysfs-test-1.1.8-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-sysfs-test-1.1.8-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-syslog-0.7.9-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-syslog-0.7.9-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-syslog-0.7.9-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-cmpi-syslog-test-0.7.9-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-cmpi-syslog-test-0.7.9-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-cmpi-syslog-test-0.7.9-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-gather-2.1.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-gather-2.1.1-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-gather-2.1.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-gather-devel-2.1.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-gather-devel-2.1.1-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-gather-devel-2.1.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-gather-provider-2.1.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-gather-provider-2.1.1-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-gather-provider-2.1.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-gather-test-2.1.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-gather-test-2.1.1-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-gather-test-2.1.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-testsuite-1.2.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-testsuite-1.2.4-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-testsuite-1.2.4-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"sblim-wbemcli-1.5.1-13a.el4_6.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"sblim-wbemcli-1.5.1-13a.c4.1")) flag++;
if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"sblim-wbemcli-1.5.1-13a.el4_6.1")) flag++;


if (flag)
{
  security_report_v4(
    port       : 0,
    severity   : SECURITY_WARNING,
    extra      : rpm_report_get()
  );
  exit(0);
}
else
{
  tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "sblim-cmpi-base / sblim-cmpi-base-devel / sblim-cmpi-base-test / etc");
}
VendorProductVersionCPE
centoscentossblim-cmpi-basep-cpe:/a:centos:centos:sblim-cmpi-base
centoscentossblim-cmpi-base-develp-cpe:/a:centos:centos:sblim-cmpi-base-devel
centoscentossblim-cmpi-base-testp-cpe:/a:centos:centos:sblim-cmpi-base-test
centoscentossblim-cmpi-develp-cpe:/a:centos:centos:sblim-cmpi-devel
centoscentossblim-cmpi-fsvolp-cpe:/a:centos:centos:sblim-cmpi-fsvol
centoscentossblim-cmpi-fsvol-develp-cpe:/a:centos:centos:sblim-cmpi-fsvol-devel
centoscentossblim-cmpi-fsvol-testp-cpe:/a:centos:centos:sblim-cmpi-fsvol-test
centoscentossblim-cmpi-networkp-cpe:/a:centos:centos:sblim-cmpi-network
centoscentossblim-cmpi-network-develp-cpe:/a:centos:centos:sblim-cmpi-network-devel
centoscentossblim-cmpi-network-testp-cpe:/a:centos:centos:sblim-cmpi-network-test
Rows per page:
1-10 of 271

4.6 Medium

CVSS2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:L/Au:N/C:P/I:P/A:P

0.0004 Low

EPSS

Percentile

5.1%