Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Arbitrary code execution in commands of Zsh shell.



On Fri, 16 Jun 2023 at 14:29, LitHack <lithack0@xxxxxxxxx> wrote:
Found a bug by which we can run our command in any other commands.

Syntax: 
{any command}>({our command})

Example:
unzip v.zip>(ls)......The command ls be executed.

This feature (not a bug) is called Process Substitution. See 
https://zsh.sourceforge.io/Doc/Release/Expansion.html#Process-Substitution.

Roman.


Messages sorted by: Reverse Date, Date, Thread, Author