oss-sec mailing list archives

Re: Healing the bash fork


From: "Kobrin, Eric" <ekobrin () akamai com>
Date: Mon, 29 Sep 2014 12:39:03 -0500

On Sep 29, 2014, at 11:59 AM, Eric Blake <eblake () redhat com> wrote:

But I see no reason to move away from %% suffixing.

The suffix fixes the obvious CGI hole, but it leaves exposed programs in which the adversary gets to choose the 
variable name as well.

env $'BASH_FUNC_foo%%=() { echo 123\n }' bash -c "foo"

I think that a more robust solution, such using a separate store for functions, is needed if function import is to 
survive as a feature.

-- Eric Kobrin

Current thread: