Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh seems to be vulnerable to CVE-2014-6271: remote code execution through bash
- X-seq: zsh-workers 33230
- From: İsmail Dönmez <ismail@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: zsh seems to be vulnerable to CVE-2014-6271: remote code execution through bash
- Date: Wed, 24 Sep 2014 17:55:05 +0300
- Cc: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=donmez.ws; s=www; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=BkaleWt2HSx3yre+pKc96rYDE3+avoyslb7HJX+iGkE=; b=YDezgeMgC9JXpVcfmoFRQlsV6wtf4dSOnZ7kgv+8mlty/fwWxJHBe+q6nLd4i7+Sp6 s37uqs7syfP45Hta8WqBR4G7b87nQcY+ngQiPNwJqPBAQVuDQ10CxmECw9e1JLU5TWIp zIUmIVZwxzDooymls0PZ+QKk1JTzyJ4ubw3U4=
- In-reply-to: <87fvfhvzl9.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAJ1KOAjyBjbywavXwa+ejjQD1YjK8eCSGaESYhJxCb1e3KPjFg@mail.gmail.com> <87fvfhvzl9.fsf@ft.bewatermyfriend.org>
On Wed, Sep 24, 2014 at 5:54 PM, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
wrote:
> İsmail Dönmez wrote:
> > According to the vulnerability test in
> >
> https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/
> >
> > [~]> echo $ZSH_VERSION
> > 5.0.6
> >
> > [~]> env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
> > vulnerable
> > this is a test
> >
> > Looks like zsh is vulnerable too.
>
> Does it?
>
> [snip]
> zsh% x='() { :; }; echo vuln' bash -c 'echo test'
> vuln
> test
> zsh% x='() { :; }; echo vuln' zsh -c 'echo test'
> test
> [snap]
>
> Doesn't look like it to me.
>
> Bash has this weird feature, where you can "export functions". I suspect
> that's what's happening here. Zsh doesn't have this feature. Thankfully
>
Brown paper bag for me not replacing bash with zsh ;) Thanks and sorry for
the noise :)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author