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.
Question
Which vulnerability is an example of Shellshock?
Options
- ASQL injection
- Bheap Overflow
- Ccross site scripting
- Dcommand injection
How the community answered
(39 responses)- A8% (3)
- B3% (1)
- C3% (1)
- D87% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.