Vulnerability & Exploit Database

Back to search

DHCP Client Bash Environment Variable Code Injection (Shellshock)

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.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

auxiliary/server/dhclient_bash_env

Authors

  • scriptjunkie
  • apconole <apconole [at] yahoo.com>
  • Stephane Chazelas
  • Ramon de C Valle <rcvalle [at] metasploit.com>

References

Actions

  • Service

Reliability

Development

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

Related Vulnerabilities

Related Modules