Skip to content

Comment on 3rd Shellshock Vulnerability Foundparent

Comments

If you're able to set arbitrary environment variables, then you could also emulate the prefix and suffix. e.g. this works even on patched F20:

    $ env 'BASH_FUNC_ls()=() { echo myls; }' bash -c ls
    myls
But as others mention, this is not really a bash issue anymore, rather a general problem of sanitizing environments.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.