Posts

Showing posts with the label shellshock

How to Exploit the ShellShock/Bash Bug CVE-2014-6271 Vulnerability

Image
The "Shellshock" or "Bash Bug" vulnerability was discovered on September 24, 2014. This vulnerability was assigned the CVE classifer CVE-2014-6271. According to NIST, "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" ( https://nvd.nist.gov/vuln/detail/CVE-2014-6271 ). To exploit this vulnerability, I used an infected virtual machine installed on a Hyper-V instance. The machine itself was downloaded from a lab in PentesterLab ( https://pentesterlab.com ). I also used a virtualized image of Kali Linux (see image below...