Exploit database

Vulnerability

CVE-2014-6271

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which setting the environment occurs across a privilege boundary from Bash execution, aka "ShellShock." NOTE: the original fix for this issue was incorrect; CVE-2014-7169 has been assigned to cover the vulnerability that is still present after the incorrect fix.

CVE Program

Exploit source choices

37 sources
Advantech Switch Bash Environment Variable Code Injection (Shellshock)
MSF-linux--http--advantech_switch_bash_env_execMetasploitUnix / remote

This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets the 'ping.sh' CGI script, accessible through the Boa web server on Advantech switches. This module was tested against firmware version 1322_D1.98.

2015-12-01advantech_switch_bash_env_exec.rb
IPFire Bash Environment Variable Injection (Shellshock)
MSF-linux--http--ipfire_bashbug_execMetasploitLinux,Unix / remote

IPFire, a free linux based open source firewall distribution, version <= 2.15 Update Core 82 contains an authenticated remote command execution vulnerability via shellshock in the request headers.

2014-09-29ipfire_bashbug_exec.rb
Pure-FTPd External Authentication Bash Environment Variable Code Injection (Shellshock)
MSF-multi--ftp--pureftpd_bash_env_execMetasploitLinux / remote

This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets the Pure-FTPd FTP server when it has been compiled with the --with-extauth flag and an external Bash script is used for authentication. If the server is not set up this way, the exploit will fail, even if the version of Bash in use is vulnerable.

2014-09-24pureftpd_bash_env_exec.rb
Apache mod_cgi Bash Environment Variable Code Injection (Shellshock)
MSF-multi--http--apache_mod_cgi_bash_env_execMetasploitLinux / remote

This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets CGI scripts in the Apache web server by setting the HTTP_USER_AGENT environment variable to a malicious function definition.

2014-09-24apache_mod_cgi_bash_env_exec.rb
CUPS Filter Bash Environment Variable Code Injection (Shellshock)
MSF-multi--http--cups_bash_env_execMetasploitUnix / remote

This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets CUPS filters through the PRINTER_INFO and PRINTER_LOCATION variables. A valid username and password is required to exploit this vulnerability through CUPS.

2014-09-24cups_bash_env_exec.rb
Dhclient Bash Environment Variable Injection (Shellshock)
MSF-unix--dhcp--bash_environmentMetasploitUnix / remote

This module exploits the Shellshock vulnerability, a flaw in how the Bash shell handles external environment variables. This module targets dhclient by responding to DHCP requests with a malicious hostname, domainname, and URL which are then passed to the configuration scripts as environment variables, resulting in code execution. Due to length restrictions and the unusual networking scenario at the time of exploitation, this module achieves code execution by writing the payload into /etc/crontab and then cleaning it up after a session is created.

2014-09-24bash_environment.rb
Qmail SMTP Bash Environment Variable Injection (Shellshock)
MSF-unix--smtp--qmail_bash_env_execMetasploitUnix / remote

This module exploits a shellshock vulnerability on Qmail, a public domain MTA written in C that runs on Unix systems. Due to the lack of validation on the MAIL FROM field, it is possible to execute shell code on a system with a vulnerable BASH (Shellshock). This flaw works on the latest Qmail versions (qmail-1.03 and netqmail-1.06). However, in order to execute code, /bin/sh has to be linked to bash (usually default configuration) and a valid recipient must be set on the RCPT TO field (usually [email protected]). The exploit does not work on the "qmailrocks" community version as it ensures the MAILFROM field is well-formed.

2014-09-24qmail_bash_env_exec.rb
scottjpack/shellshock_scanner
GH-8209387ca864c891c6d57815aacc2954GitHubUnofficial GitHub source

Python Scanner for "ShellShock" (CVE-2014-6271)

2014-09-251 file · 46 stars
hmlio/vaas-cve-2014-6271
GH-176f2d68fbacb9f141546561c380d959GitHubUnofficial GitHub source

Vulnerability as a service: showcasing CVS-2014-6271, a.k.a. Shellshock

2015-07-111 file · 22 stars
b4kesn4ke/cve-2014-6271
GH-e52df000b92f35ffb3fe325e8e7bcf64GitHubUnofficial GitHub source

Shellshock exploit aka CVE-2014-6271

2021-07-291 file · 15 stars
cj1324/cgishell
GH-6ab880592bc23e364a259984260331fdGitHubUnofficial GitHub source

shellshock CVE-2014-6271 CGI Exploit, Use like Openssh via CGI

2014-09-291 file · 12 stars
francisck/shellshock-cgi
GH-e59a515f26c1fe7c848d5fad07961a48GitHubUnofficial GitHub source

A python script to enumerate CGI scripts vulnerable to CVE-2014-6271 on one specific server

2014-09-281 file · 12 stars
indiandragon/shellshock-vulnerability-scan
GH-11a0dfd82783ec715543eb1fa0325216GitHubUnofficial GitHub source

Android app to scan for bash Vulnerability - CVE-2014-6271 also known as Shellshock

2014-10-032 files · 11 stars
p0cl4bs/shellshock-cgi-scan
GH-8525432272b1d48991066c5967837292GitHubUnofficial GitHub source

A script, in C, to check if CGI scripts are vulnerable to CVE-2014-6271 (The Bash Bug).

2015-06-261 file · 6 stars
j0hnth3kn1ght/cve-2014-6271
GH-e908a75c0679b19c0aa92a227fbf7b46GitHubUnofficial GitHub source

Exploitation of "Shellshock" Vulnerability. Remote code execution in Apache with mod_cgi

2023-07-011 file · 5 stars