module

DHCP Client Bash Environment Variable Code Injection (Shellshock)

Disclosed
2014-09-24
Created
2018-05-30

Description

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.

Authors

scriptjunkie
apconole apconole@yahoo.com
Stephane Chazelas
Ramon de C Valle rcvalle@metasploit.com

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use auxiliary/server/dhclient_bash_env
msf auxiliary(dhclient_bash_env) > show actions
...actions...
msf auxiliary(dhclient_bash_env) > set ACTION < action-name >
msf auxiliary(dhclient_bash_env) > show options
...show and set options...
msf auxiliary(dhclient_bash_env) > run

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.