[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: currently doable? Indirect notation used w/a hash
From: |
Greg Wooledge |
Subject: |
Re: currently doable? Indirect notation used w/a hash |
Date: |
Mon, 10 Jun 2013 10:33:11 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Mon, Jun 10, 2013 at 10:23:10AM -0400, Chris F.A. Johnson wrote:
> On Mon, 10 Jun 2013, Chris Down wrote:
>
> >Enjoy your arbitrary command execution.
>
> Can you give me an example, using the code I posted, where that would
> happen?
> >On 10 Jun 2013 14:15, "Chris F.A. Johnson" <chris@cfajohnson.com> wrote:
> >>eval "array=( \"\${$1[@]}\" )"
imadev:~$ foobar() { set -x; eval "array=( \"\${$1[@]}\" )"; }
imadev:~$ foobar 'a}"); date; b=("${q'
+ foobar 'a}"); date; b=("${q'
+ set -x
+ eval 'array=( "${a}"); date; b=("${q[@]}" )'
++ array=("${a}")
++ date
Mon Jun 10 10:31:41 EDT 2013
++ b=("${q[@]}")
A really clever attack wouldn't leave those extra variables lying around,
either. I stopped at "working" and didn't spend the extra time for
"clever".
- Re: currently doable? Indirect notation used w/a hash, (continued)
- Re: currently doable? Indirect notation used w/a hash, Chris F.A. Johnson, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Chris Down, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Greg Wooledge, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Chris F.A. Johnson, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Dan Douglas, 2013/06/14
- Re: currently doable? Indirect notation used w/a hash, Dan Douglas, 2013/06/14
- Re: currently doable? Indirect notation used w/a hash, Pierre Gaston, 2013/06/14
- Re: currently doable? Indirect notation used w/a hash, Dan Douglas, 2013/06/14
- Re: currently doable? Indirect notation used w/a hash, Greg Wooledge, 2013/06/14
- Re: currently doable? Indirect notation used w/a hash, Chris F.A. Johnson, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash,
Greg Wooledge <=
- Re: currently doable? Indirect notation used w/a hash, Chris F.A. Johnson, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Linda Walsh, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Chris F.A. Johnson, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Linda Walsh, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Linda Walsh, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Mike Frysinger, 2013/06/10
- Re: currently doable? Indirect notation used w/a hash, Chris Down, 2013/06/11
- Re: currently doable? Indirect notation used w/a hash, Mike Frysinger, 2013/06/11
Aw: currently doable? Indirect notation used w/a hash, John Kearney, 2013/06/15