module

Dhclient Bash Environment Variable Injection (Shellshock)

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

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. 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.

Authors

Stephane Chazelasegypt

Platform

Unix

Architectures

cmd

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 exploit/unix/dhcp/bash_environment
    msf /(t) > show actions
        ...actions...
    msf /(t) > set ACTION < action-name >
    msf /(t) > show options
        ...show and set options...
    msf /(t) > 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.