bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arbitrary command execution from test on a quoted string


From: Greg Wooledge
Subject: Re: Arbitrary command execution from test on a quoted string
Date: Fri, 29 Oct 2021 08:01:40 -0400

On Fri, Oct 29, 2021 at 12:48:57PM +0300, Ilkka Virta wrote:
> Not that I'm sure the upper one is still safe against every input. I think
> issues with associative array keys have been
> discussed on the list before.

Sadly, yes.  Bash is the exploding barbed wire death match of programming
languages.  Every single feature of bash is capable of hurting you if you
use it in the naive or obvious way.

https://mywiki.wooledge.org/BashProgramming/05#Associative_Array_Index_Multiple_Expansions
https://mywiki.wooledge.org/BashPitfalls#pf61
https://mywiki.wooledge.org/BashPitfalls#pf62



reply via email to

[Prev in Thread] Current Thread [Next in Thread]