Question: Which of the following bash functions can exploit the shellshock vulnerability if the new bash process is triggered and the environment variables pass to it?

Which of the following bash functions can exploit the shellshock vulnerability if the new bash process is triggered and the environment variables pass to it?

Group of answer choices

1. foo2='echo "malicious codes"; () { echo "Hello world"};'

2. foo1='() { echo "Hello world"; }; echo "malicious codes";'

3. foo3=() { echo "Hello world"; }; echo "malicious codes";

4. foo4=echo "malicious codes"; () { echo "Hello world"};

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!