
Hands-on lab demonstrating the Shellshock (CVE-2014-6271) Bash vulnerability with privilege escalation via environment variable injection, based on the pwnable.kr challenge.
I tried to read the flag by setting the environment variable value with function syntax so that bash recognizes it as a function, and then appending a command, but it failed due to insufficient permissions.
Looking at the shellshock.c code, it elevates the effective group ID and then executes bash.