Lucene search

K
nessusThis script is Copyright (C) 2012-2021 and is owned by Tenable, Inc. or an Affiliate thereof.SL_20090902_ECRYPTFS_UTILS_ON_SL5_X.NASL
HistoryAug 01, 2012 - 12:00 a.m.

Scientific Linux Security Update : ecryptfs-utils on SL5.x i386/x86_64

2012-08-0100:00:00
This script is Copyright (C) 2012-2021 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
13

7.2 High

CVSS2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

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

0.0004 Low

EPSS

Percentile

10.1%

These updated ecryptfs-utils packages have been upgraded to upstream version 75, which provides a number of bug fixes and enhancements over the previous version. In addition, these packages provide a graphical program to help configure and use eCryptfs. To start this program, run the command :

ecryptfs-mount-helper-gui

Important: the syntax of certain eCryptfs mount options has changed.
Users who were previously using the initial Technology Preview release of ecryptfs-utils are advised to refer to the ecryptfs(7) man page, and to update any affected mount scripts and /etc/fstab entries for eCryptfs file systems.

A disclosure flaw was found in the way the ‘ecryptfs-setup-private’ script passed passphrases to the ‘ecryptfs-wrap-passphrase’ and ‘ecryptfs-add-passphrase’ commands as command line arguments. A local user could obtain the passphrases of other users who were running the script from the process listing. (CVE-2008-5188)

These updated packages provide various enhancements, including a mount helper and supporting libraries to perform key management and mounting functions.

Notable enhancements include :

  • a new package, ecryptfs-utils-gui, has been added to this update. This package depends on the pygtk2 and pygtk2-libglade packages and provides the eCryptfs Mount Helper GUI program. To install the GUI, first install ecryptfs-utils and then issue the following command :

    yum install ecryptfs-utils-gui

(BZ#500997)

  • the ‘ecryptfs-rewrite-file’ utility is now more intelligent when dealing with non-existent files and with filtering special files such as the ‘.’ directory.
    In addition, the progress output from ‘ecryptfs-rewrite-file’ has been improved and is now more explicit about the success status of each target.
    (BZ#500813)

  • descriptions of the ‘verbose’ flag and the ‘verbosity=[x]’ option, where [x] is either 0 or 1, were missing from a number of eCryptfs manual pages, and have been added. Refer to the eCryptfs man pages for important information regarding using the verbose and/or verbosity options. (BZ#470444)

These updated packages also fix the following bugs :

  • mounting a directory using the eCryptfs mount helper with an RSA key that was too small did not allow the eCryptfs mount helper to encrypt the entire key. When this situation occurred, the mount helper did not display an error message alerting the user to the fact that the key size was too small, possibly leading to corrupted files. The eCryptfs mount helper now refuses RSA keys which are to small to encrypt the eCryptfs key.
    (BZ#499175)

  • when standard input was redirected from /dev/null or was unavailable, attempting to mount a directory with the eCryptfs mount helper caused it to become unresponsive and eventually crash, or an ‘invalid value’ error message, depending on if the ‘–verbosity=[value]’ option was provided as an argument, and, if so, its value. With these updated packages, attempting to mount a directory using ‘mount.ecryptfs’ under the same conditions results in either the mount helper attempting to use default values (if ‘verbosity=0’ is supplied), or an ‘invalid value’ error message (instead of the mount helper hanging) if standard input is redirected and ‘–verbosity=1’ is supplied, or that option is omitted entirely. (BZ#499367)

  • attempting to use the eCryptfs mount helper with an OpenSSL key when the keyring did not contain enough space for the key resulted in an unhelpful error message. The user is now alerted when this situation occurs. (BZ#501460)

  • the eCryptfs mount helper no longer fails upon receiving an incorrect or empty answer to ‘yes/no’ questions.
    (BZ#466210)

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text is (C) Scientific Linux.
#

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

if (description)
{
  script_id(60651);
  script_version("1.8");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/14");

  script_cve_id("CVE-2008-5188");

  script_name(english:"Scientific Linux Security Update : ecryptfs-utils on SL5.x i386/x86_64");
  script_summary(english:"Checks rpm output for the updated packages");

  script_set_attribute(
    attribute:"synopsis", 
    value:
"The remote Scientific Linux host is missing one or more security
updates."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"These updated ecryptfs-utils packages have been upgraded to upstream
version 75, which provides a number of bug fixes and enhancements over
the previous version. In addition, these packages provide a graphical
program to help configure and use eCryptfs. To start this program, run
the command :

ecryptfs-mount-helper-gui

Important: the syntax of certain eCryptfs mount options has changed.
Users who were previously using the initial Technology Preview release
of ecryptfs-utils are advised to refer to the ecryptfs(7) man page,
and to update any affected mount scripts and /etc/fstab entries for
eCryptfs file systems.

A disclosure flaw was found in the way the 'ecryptfs-setup-private'
script passed passphrases to the 'ecryptfs-wrap-passphrase' and
'ecryptfs-add-passphrase' commands as command line arguments. A local
user could obtain the passphrases of other users who were running the
script from the process listing. (CVE-2008-5188)

These updated packages provide various enhancements, including a mount
helper and supporting libraries to perform key management and mounting
functions.

Notable enhancements include :

  - a new package, ecryptfs-utils-gui, has been added to
    this update. This package depends on the pygtk2 and
    pygtk2-libglade packages and provides the eCryptfs Mount
    Helper GUI program. To install the GUI, first install
    ecryptfs-utils and then issue the following command :

    yum install ecryptfs-utils-gui

(BZ#500997)

  - the 'ecryptfs-rewrite-file' utility is now more
    intelligent when dealing with non-existent files and
    with filtering special files such as the '.' directory.
    In addition, the progress output from
    'ecryptfs-rewrite-file' has been improved and is now
    more explicit about the success status of each target.
    (BZ#500813)

  - descriptions of the 'verbose' flag and the
    'verbosity=[x]' option, where [x] is either 0 or 1, were
    missing from a number of eCryptfs manual pages, and have
    been added. Refer to the eCryptfs man pages for
    important information regarding using the verbose and/or
    verbosity options. (BZ#470444)

These updated packages also fix the following bugs :

  - mounting a directory using the eCryptfs mount helper
    with an RSA key that was too small did not allow the
    eCryptfs mount helper to encrypt the entire key. When
    this situation occurred, the mount helper did not
    display an error message alerting the user to the fact
    that the key size was too small, possibly leading to
    corrupted files. The eCryptfs mount helper now refuses
    RSA keys which are to small to encrypt the eCryptfs key.
    (BZ#499175)

  - when standard input was redirected from /dev/null or was
    unavailable, attempting to mount a directory with the
    eCryptfs mount helper caused it to become unresponsive
    and eventually crash, or an 'invalid value' error
    message, depending on if the '--verbosity=[value]'
    option was provided as an argument, and, if so, its
    value. With these updated packages, attempting to mount
    a directory using 'mount.ecryptfs' under the same
    conditions results in either the mount helper attempting
    to use default values (if 'verbosity=0' is supplied), or
    an 'invalid value' error message (instead of the mount
    helper hanging) if standard input is redirected and
    '--verbosity=1' is supplied, or that option is omitted
    entirely. (BZ#499367)

  - attempting to use the eCryptfs mount helper with an
    OpenSSL key when the keyring did not contain enough
    space for the key resulted in an unhelpful error
    message. The user is now alerted when this situation
    occurs. (BZ#501460)

  - the eCryptfs mount helper no longer fails upon receiving
    an incorrect or empty answer to 'yes/no' questions.
    (BZ#466210)"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://bugzilla.redhat.com/show_bug.cgi?id=466210"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://bugzilla.redhat.com/show_bug.cgi?id=470444"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://bugzilla.redhat.com/show_bug.cgi?id=499175"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://bugzilla.redhat.com/show_bug.cgi?id=499367"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://bugzilla.redhat.com/show_bug.cgi?id=500813"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://bugzilla.redhat.com/show_bug.cgi?id=500997"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://bugzilla.redhat.com/show_bug.cgi?id=501460"
  );
  # https://listserv.fnal.gov/scripts/wa.exe?A2=ind0911&L=scientific-linux-errata&T=0&P=1341
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?5e69ce59"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"Update the affected ecryptfs-utils, ecryptfs-utils-devel and / or
ecryptfs-utils-gui packages."
  );
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
  script_cwe_id(255);

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");

  script_set_attribute(attribute:"vuln_publication_date", value:"2008/11/20");
  script_set_attribute(attribute:"patch_publication_date", value:"2009/09/02");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/08/01");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_end_attributes();

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

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/RedHat/release", "Host/RedHat/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/RedHat/release");
if (isnull(release) || "Scientific Linux " >!< release) audit(AUDIT_HOST_NOT, "running Scientific Linux");
if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);

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


flag = 0;
if (rpm_check(release:"SL5", reference:"ecryptfs-utils-75-5.el5")) flag++;
if (rpm_check(release:"SL5", reference:"ecryptfs-utils-devel-75-5.el5")) flag++;
if (rpm_check(release:"SL5", reference:"ecryptfs-utils-gui-75-5.el5")) flag++;


if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
  else security_hole(0);
  exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");
VendorProductVersionCPE
fermilabscientific_linuxx-cpe:/o:fermilab:scientific_linux

7.2 High

CVSS2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

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

0.0004 Low

EPSS

Percentile

10.1%