Vulnerabilities > CVE-2012-3410 - Buffer Errors vulnerability in GNU Bash 4.2
Attack vector
LOCAL Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
Stack-based buffer overflow in lib/sh/eaccess.c in GNU Bash before 4.2 patch 33 might allow local users to bypass intended restricted shell access via a long filename in /dev/fd, which is not properly handled when expanding the /dev/fd prefix.
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Nessus
NASL family SuSE Local Security Checks NASL id SUSE_BASH-8217.NASL description Parsing the /dev/fd prefix could have lead to a stack-based buffer overflow which could have been exploited by attackers to bypass security restrictions. (CVE-2012-3410) last seen 2020-06-05 modified 2012-08-14 plugin id 61524 published 2012-08-14 reporter This script is Copyright (C) 2012-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/61524 title SuSE 10 Security Update : bash (ZYPP Patch Number 8217) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2013-032.NASL description A vulnerability was found and corrected in bash : A stack-based buffer overflow flaw was found in the way bash, the GNU Bourne Again shell, expanded certain /dev/fd file names when checking file names ( last seen 2020-06-01 modified 2020-06-02 plugin id 66046 published 2013-04-20 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/66046 title Mandriva Linux Security Advisory : bash (MDVSA-2013:032) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2012-128.NASL description A vulnerability was found and corrected in bash : A stack-based buffer overflow flaw was found in the way bash, the GNU Bourne Again shell, expanded certain /dev/fd file names when checking file names ( last seen 2020-06-01 modified 2020-06-02 plugin id 61977 published 2012-09-06 reporter This script is Copyright (C) 2012-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/61977 title Mandriva Linux Security Advisory : bash (MDVSA-2012:128) NASL family Solaris Local Security Checks NASL id SOLARIS11_BASH_20141107.NASL description The remote Solaris system is missing necessary patches to address security updates : - Stack-based buffer overflow in lib/sh/eaccess.c in GNU Bash before 4.2 patch 33 might allow local users to bypass intended restricted shell access via a long filename in /dev/fd, which is not properly handled when expanding the /dev/fd prefix. (CVE-2012-3410) last seen 2020-06-01 modified 2020-06-02 plugin id 80591 published 2015-01-19 reporter This script is Copyright (C) 2015-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/80591 title Oracle Solaris Third-Party Patch Update : bash (cve_2012_3410_stack_based) NASL family SuSE Local Security Checks NASL id OPENSUSE-2012-408.NASL description Bash was fixed to avoid a possible buffer overflow when expanding the /dev/fd prefix with e.g. the test builtin (bnc#770795) (CVE-2012-3410) Due to _FORTIFY_SOURCE=2 enablement, the exploit will only abort the shell. last seen 2020-06-05 modified 2014-06-13 plugin id 74685 published 2014-06-13 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/74685 title openSUSE Security Update : bash (openSUSE-SU-2012:0898-1) NASL family SuSE Local Security Checks NASL id SUSE_11_BASH-120713.NASL description Parsing the /dev/fd prefix could have lead to a stack-based buffer overflow which could have been exploited by attackers to bypass security restrictions. This has been fixed. last seen 2020-06-05 modified 2013-01-25 plugin id 64110 published 2013-01-25 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/64110 title SuSE 11.1 Security Update : bash (SAT Patch Number 6541) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201210-05.NASL description The remote host is affected by the vulnerability described in GLSA-201210-05 (Bash: Multiple vulnerabilities) Two vulnerabilities have been found in Bash: Bash example scripts do not handle temporary files securely (CVE-2008-5374). Improper bounds checking in Bash could cause a stack-based buffer overflow (CVE-2012-3410). Impact : A remote attacker could entice a user to open a specially crafted Bash script, possibly resulting in execution of arbitrary code with the privileges of the process, or a Denial of Service condition of the Bash executable. A local attacker may be able to perform symlink attacks to overwrite arbitrary files with the privileges of the user running the application or bypass shell access restrictions. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 62650 published 2012-10-22 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/62650 title GLSA-201210-05 : Bash: Multiple vulnerabilities
References
- ftp://ftp.gnu.org/pub/gnu/bash/bash-4.2-patches/bash42-033
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681278
- http://secunia.com/advisories/51086
- http://security.gentoo.org/glsa/glsa-201210-05.xml
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:128
- http://www.openwall.com/lists/oss-security/2012/07/11/11
- http://www.openwall.com/lists/oss-security/2012/07/11/22
- http://www.openwall.com/lists/oss-security/2012/07/12/4
- http://www.securityfocus.com/bid/54937
- https://exchange.xforce.ibmcloud.com/vulnerabilities/77551
- https://hermes.opensuse.org/messages/15227834