ID CVE-2012-4453
Summary dracut.sh in dracut, as used in Red Hat Enterprise Linux 6, Fedora 16 and 17, and possibly other products, creates initramfs images with world-readable permissions, which might allow local users to obtain sensitive information.
References
Vulnerable Configurations
  • cpe:2.3:a:fedoraproject:dracut
    cpe:2.3:a:fedoraproject:dracut
  • Fedora 16
    cpe:2.3:o:fedoraproject:fedora:16
  • Fedora 17
    cpe:2.3:o:fedoraproject:fedora:17
  • Red Hat Enterprise Linux 6.0
    cpe:2.3:o:redhat:enterprise_linux:6.0
CVSS
Base: 2.1 (as of 10-10-2012 - 15:05)
Impact:
Exploitability:
CWE CWE-264
CAPEC
  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Blue Boxing
    This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL NONE NONE
nessus via4
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2013-1674.NASL
    description From Red Hat Security Advisory 2013:1674 : Updated dracut packages that fix one security issue, several bugs, and add two enhancements are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The dracut packages include an event-driven initramfs generator infrastructure based on the udev device manager. The virtual file system, initramfs, is loaded together with the kernel at boot time and initializes the system, so it can read and boot from the root partition. It was discovered that dracut created initramfs images as world readable. A local user could possibly use this flaw to obtain sensitive information from these files, such as iSCSI authentication passwords, encrypted root file system crypttab passwords, or other information. (CVE-2012-4453) This issue was discovered by Peter Jones of the Red Hat Installer Team. These updated dracut packages include numerous bug fixes and two enhancements. Space precludes documenting all of these changes in this advisory. Users are directed to the Red Hat Enterprise Linux 6.5 Technical Notes, linked to in the References, for information on the most significant of these changes. All dracut users are advised to upgrade to these updated packages, which contain backported patches to correct these issues and add these enhancements.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 71111
    published 2013-11-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=71111
    title Oracle Linux 6 : dracut (ELSA-2013-1674)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20131121_DRACUT_ON_SL6_X.NASL
    description It was discovered that dracut created initramfs images as world readable. A local user could possibly use this flaw to obtain sensitive information from these files, such as iSCSI authentication passwords, encrypted root file system crypttab passwords, or other information. (CVE-2012-4453)
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 71297
    published 2013-12-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=71297
    title Scientific Linux Security Update : dracut on SL6.x (noarch)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2012-16448.NASL
    description - fixed ifup exit code - fixed default 'rd.auto' parameter setting - only 'warn' not 'error', if we don't strip the initramfs - do not overwrite ifcfg from anaconda - ssh-client module fixes - strip binaries in the initramfs by default now - fixes for systemd and crypto - new dracut kernel command line options 'rd.auto' - new dracut kernel command line options 'rd.noverifyssl' - new dracut option '--kernel-cmdline' and 'kernel_cmdline' option for default parameters - fix for kexec in shutdown, if not included in initramfs - no more iscsi_wait_scan - curl: give info what URL failed, support https - use findmnt - systemd: wait for crypto target - only install crypttab in host-only mode - add udev groups - fixed busybox install - fixed rd.luks.allow-discards manpage and handling - force install dm_mod - do not create the initramfs world reabable - add nameserver even for dhcp - fallback to reboot if shutdown was called without a parameter Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 62698
    published 2012-10-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62698
    title Fedora 18 : dracut-024-5.git20121019.fc18 (2012-16448)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2012-14959.NASL
    description dracut-018-60.git20120927 - run dracut-shutdown.service before shutdown.target Resolves: rhbz#840120 - do not create the initramfs world readable Resolves: rhbz#859448 - mdraid: do the dracut shutdown, if a md raid is found - mdraid: handle nested md raids - mdraid: wait until devices are clean on shutdown Resolves: rhbz#732297 rhbz#840562 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 62526
    published 2012-10-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62526
    title Fedora 16 : dracut-018-60.git20120927.fc16 (2012-14959)
  • NASL family Amazon Linux Local Security Checks
    NASL id ALA_ALAS-2013-257.NASL
    description It was discovered that dracut created initramfs images as world readable. A local user could possibly use this flaw to obtain sensitive information from these files, such as iSCSI authentication passwords, encrypted root file system crypttab passwords, or other information. (CVE-2012-4453)
    last seen 2019-02-21
    modified 2018-04-18
    plugin id 71397
    published 2013-12-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=71397
    title Amazon Linux AMI : dracut (ALAS-2013-257)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2013-1674.NASL
    description Updated dracut packages that fix one security issue, several bugs, and add two enhancements are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The dracut packages include an event-driven initramfs generator infrastructure based on the udev device manager. The virtual file system, initramfs, is loaded together with the kernel at boot time and initializes the system, so it can read and boot from the root partition. It was discovered that dracut created initramfs images as world readable. A local user could possibly use this flaw to obtain sensitive information from these files, such as iSCSI authentication passwords, encrypted root file system crypttab passwords, or other information. (CVE-2012-4453) This issue was discovered by Peter Jones of the Red Hat Installer Team. These updated dracut packages include numerous bug fixes and two enhancements. Space precludes documenting all of these changes in this advisory. Users are directed to the Red Hat Enterprise Linux 6.5 Technical Notes, linked to in the References, for information on the most significant of these changes. All dracut users are advised to upgrade to these updated packages, which contain backported patches to correct these issues and add these enhancements.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 71016
    published 2013-11-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=71016
    title RHEL 6 : dracut (RHSA-2013:1674)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2012-14953.NASL
    description dracut-018-105.git20120927 - enable the use of the nbd port with e.g. '-N ltsp' - actually make reset_overlay working for squash overlays - fixed FIPS - if any mdraid found, make dracut run on shutdown - make the initramfs non-world readable Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 62525
    published 2012-10-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62525
    title Fedora 17 : dracut-018-105.git20120927.fc17 (2012-14953)
redhat via4
advisories
bugzilla
id 1019104
title Interface renaming via ifname does not work for RHEL-6.5
oval
AND
  • OR
    • comment Red Hat Enterprise Linux 6 Client is installed
      oval oval:com.redhat.rhba:tst:20111656001
    • comment Red Hat Enterprise Linux 6 Server is installed
      oval oval:com.redhat.rhba:tst:20111656002
    • comment Red Hat Enterprise Linux 6 Workstation is installed
      oval oval:com.redhat.rhba:tst:20111656003
    • comment Red Hat Enterprise Linux 6 ComputeNode is installed
      oval oval:com.redhat.rhba:tst:20111656004
  • OR
    • AND
      • comment dracut is earlier than 0:004-336.el6
        oval oval:com.redhat.rhsa:tst:20131674005
      • comment dracut is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20131674006
    • AND
      • comment dracut-caps is earlier than 0:004-336.el6
        oval oval:com.redhat.rhsa:tst:20131674015
      • comment dracut-caps is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20131674016
    • AND
      • comment dracut-fips is earlier than 0:004-336.el6
        oval oval:com.redhat.rhsa:tst:20131674017
      • comment dracut-fips is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20131674018
    • AND
      • comment dracut-fips-aesni is earlier than 0:004-336.el6
        oval oval:com.redhat.rhsa:tst:20131674009
      • comment dracut-fips-aesni is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20131674010
    • AND
      • comment dracut-generic is earlier than 0:004-336.el6
        oval oval:com.redhat.rhsa:tst:20131674011
      • comment dracut-generic is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20131674012
    • AND
      • comment dracut-kernel is earlier than 0:004-336.el6
        oval oval:com.redhat.rhsa:tst:20131674019
      • comment dracut-kernel is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20131674020
    • AND
      • comment dracut-network is earlier than 0:004-336.el6
        oval oval:com.redhat.rhsa:tst:20131674013
      • comment dracut-network is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20131674014
    • AND
      • comment dracut-tools is earlier than 0:004-336.el6
        oval oval:com.redhat.rhsa:tst:20131674007
      • comment dracut-tools is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20131674008
rhsa
id RHSA-2013:1674
released 2013-11-21
severity Moderate
title RHSA-2013:1674: dracut security, bug fix, and enhancement update (Moderate)
rpms
  • dracut-0:004-336.el6
  • dracut-caps-0:004-336.el6
  • dracut-fips-0:004-336.el6
  • dracut-fips-aesni-0:004-336.el6
  • dracut-generic-0:004-336.el6
  • dracut-kernel-0:004-336.el6
  • dracut-network-0:004-336.el6
  • dracut-tools-0:004-336.el6
refmap via4
bid 55713
confirm https://bugzilla.redhat.com/show_bug.cgi?id=859448
misc http://git.kernel.org/?p=boot/dracut/dracut.git;a=commit;h=e1b48995c26c4f06d1a71
mlist
  • [oss-security] 20120927 Re: dracut creates non-world readable initramfs images
  • [oss-security] 20120927 Re: dracut creates world readable initramfs images
  • [oss-security] 20120927 dracut creates non-world readable initramfs images
xf dracut-initramfs-information-disclosure(79258)
Last major update 07-01-2014 - 23:31
Published 09-10-2012 - 19:55
Last modified 22-04-2019 - 13:48
Back to Top