What is vulnerable about this C code?
You can override the PATH variable to point to a directory with your custom version of echo and since echo is executed using env, it isn’t treated as a built-in. This constitues a vulnerability only if the code is run as privileged user. In the example below file v.c contains the code from the question. … Read more