nerdexam
Cisco

210-250 · Question #109

Which vulnerability is an example of Shellshock?

The correct answer is D. command injection. Shellshock (CVE-2014-6271) is a critical Bash shell vulnerability that allows attackers to inject and execute arbitrary operating system commands by embedding them in specially crafted environment variables.

Threats and Vulnerabilities

Question

Which vulnerability is an example of Shellshock?

Options

  • ASQL injection
  • Bheap Overflow
  • Ccross site scripting
  • Dcommand injection

How the community answered

(39 responses)
  • A
    8% (3)
  • B
    3% (1)
  • C
    3% (1)
  • D
    87% (34)

Why each option

Shellshock (CVE-2014-6271) is a critical Bash shell vulnerability that allows attackers to inject and execute arbitrary operating system commands by embedding them in specially crafted environment variables.

ASQL injection

SQL injection targets unsanitized input passed into database queries to manipulate SQL statements, which is unrelated to the Bash environment variable parsing flaw exploited by Shellshock.

Bheap Overflow

A heap overflow corrupts dynamically allocated memory to redirect program execution flow, a fundamentally different vulnerability class from the string parsing bug in Bash that Shellshock exploits.

Ccross site scripting

Cross-site scripting (XSS) injects malicious client-side scripts into web pages to attack browser users, which is a web application vulnerability entirely unrelated to the server-side Bash shell parsing issue.

Dcommand injectionCorrect

Shellshock exploits a flaw in how GNU Bash parses function definitions stored in environment variables - an attacker can append arbitrary commands after the function definition and Bash will execute them, which is precisely command injection; this affected web servers using CGI, DHCP clients, SSH, and any service that invoked Bash with attacker-controlled environment variables.

Concept tested: Shellshock vulnerability as command injection in Bash

Source: https://nvd.nist.gov/vuln/detail/CVE-2014-6271

Topics

#Shellshock#command injection#vulnerability types#bash vulnerability

Community Discussion

No community discussion yet for this question.

Full 210-250 Practice